-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
856 lines (770 loc) · 38.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smile - Home</title>
<meta name="description" content="Statistical Machine Intelligence and Learning Engine">
<!-- prettify js and CSS -->
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?lang=scala&lang=kotlin&lang=clj"></script>
<style>
.prettyprint ol.linenums > li { list-style-type: decimal; }
</style>
<!-- Bootstrap core CSS -->
<link href="css/cerulean.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- slider -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.transitions.css" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css" type="text/css" />
<!-- table of contents auto generator -->
<script src="js/toc.js" type="text/javascript"></script>
<!-- styles for pager and table of contents -->
<link rel="stylesheet" href="css/pager.css" type="text/css" />
<link rel="stylesheet" href="css/toc.css" type="text/css" />
<!-- Vega-Lite Embed -->
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-57GD08QCML"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-57GD08QCML');
</script>
<!-- Sidebar and testimonial-slider -->
<script type="text/javascript">
$(document).ready(function(){
// scroll/follow sidebar
// #sidebar is defined in the content snippet
// This script has to be executed after the snippet loaded.
// $.getScript("js/follow-sidebar.js");
$("#testimonial-slider").owlCarousel({
items: 1,
singleItem: true,
pagination: true,
navigation: false,
loop: true,
autoPlay: 10000,
stopOnHover: true,
transitionStyle: "backSlide",
touchDrag: true
});
});
</script>
</head>
<body>
<div class="container" style="max-width: 1200px;">
<header>
<div class="masthead">
<p class="lead">
<a href="index.html">
<img src="images/smile.jpg" style="height:100px; width:auto; vertical-align: bottom; margin-top: 20px; margin-right: 20px;">
<span class="tagline">Smile - Statistical Machine Intelligence and Learning Engine</span>
</a>
</p>
</div>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Overview <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="quickstart.html">Quick Start</a></li>
<li><a href="overview.html">What's Machine Learning</a></li>
<li><a href="data.html">Data Processing</a></li>
<li><a href="visualization.html">Data Visualization</a></li>
<li><a href="vegalite.html">Declarative Visualization</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Supervised Learning <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="classification.html">Classification</a></li>
<li><a href="regression.html">Regression</a></li>
<li><a href="deep-learning.html">Deep Learning</a></li>
<li><a href="feature.html">Feature Engineering</a></li>
<li><a href="validation.html">Model Validation</a></li>
<li><a href="missing-value-imputation.html">Missing Value Imputation</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Unsupervised Learning <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="clustering.html">Clustering</a></li>
<li><a href="vector-quantization.html">Vector Quantization</a></li>
<li><a href="association-rule.html">Association Rule Mining</a></li>
<li><a href="mds.html">Multi-Dimensional Scaling</a></li>
<li><a href="manifold.html">Manifold Learning</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">LLM & NLP <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="llm.html">Large Language Model (LLM)</a></li>
<li><a href="nlp.html">Natural Language Processing (NLP)</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Math <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="linear-algebra.html">Linear Algebra</a></li>
<li><a href="statistics.html">Statistics</a></li>
<li><a href="wavelet.html">Wavelet</a></li>
<li><a href="interpolation.html">Interpolation</a></li>
<li><a href="graph.html">Graph Data Structure</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">API <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="api/java/index.html" target="_blank">Java</a></li>
<li><a href="api/scala/index.html" target="_blank">Scala</a></li>
<li><a href="api/kotlin/index.html" target="_blank">Kotlin</a></li>
<li><a href="api/clojure/index.html" target="_blank">Clojure</a></li>
<li><a href="api/json/index.html" target="_blank">JSON</a></li>
</ul>
</li>
<li><a href="https://mybinder.org/v2/gh/haifengl/smile/notebook?urlpath=lab%2Ftree%2Fshell%2Fsrc%2Funiversal%2Fnotebooks%2Findex.ipynb" target="_blank">Try It Online</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
</header>
<div id="content" class="row">
<div class="col-md-3 col-md-push-9 hidden-xs hidden-sm">
<div class="news" style="margin-bottom: 20px;">
<h5>Latest News</h5>
<ul class="list-unstyled">
<li><a href="https://github.com/haifengl/smile/releases/tag/v4.0.0">Smile 4.0.0 Released!</a>
<span class="small">(Nov 25, 2024)</span></li>
<li><a href="https://github.com/haifengl/smile/releases/tag/v3.1.1">Smile 3.1.1 Released!</a>
<span class="small">(May 22, 2024)</span></li>
<li><a href="https://github.com/haifengl/smile/releases/tag/v3.1.0">Smile 3.1.0 Released!</a>
<span class="small">(Apr 2, 2024)</span></li>
<li><a href="https://medium.com/@lbq999/time-series-prediction-model-in-java-using-the-smile-library-df4bcdc4cfa0">Time-Series Prediction Model in Java Using the Smile Library</a>
<span class="small">(Oct 16, 2023, by Boqiang & Henry)</span></li>
<li><a href="https://www.almabetter.com/bytes/articles/machine-learning-libraries">10 Best Machine Learning Libraries You Should Know in 2024</a>
<span class="small">(May 16, 2023, by AlmaBetter Bytes)</span></li>
<li><a href="https://magnusgunnarsson.se/offentlig/getting-started-with-smile-with-kotlin/">Getting started with SMILE with Kotlin</a>
<span class="small">(Feb 23, 2021, by Magnus MacHale-Gunnarsson)</span></li>
<li><a href="https://www.youtube.com/watch?v=aqT_0qFOBUI">Dex Machine Learning with SMILE ML</a>
<span class="small">(Mar 28, 2018, by Patrick Martin)</span></li>
<li><a href="https://www.infoworld.com/article/3220428/machine-learning/3-projects-lighting-a-fire-under-machine-learning.html">3 projects lighting a fire under machine learning</a>
<span class="small">(Aug 30, 2017, by InfoWorld)</span></li>
<li><a href="https://www.kdnuggets.com/2017/04/five-machine-learning-projects-cant-overlook-april.html">5 Machine Learning Projects You Can No Longer Overlook</a>
<span class="small">(Apr 19, 2017, by KDnuggets)</span></li>
</ul>
</div>
<div>
<!--
<div align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="XKU5BZX7XHPQ6" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</div>
-->
<a href="https://github.com/haifengl/smile/releases" class="btn btn-primary btn-lg btn-block" style="margin-bottom: 30px;">
Download
</a>
</div>
<!--
<div class="community" style="margin-bottom: 20px;">
<h5>Please Join Smilers</h5>
<ul class="list-unstyled">
<li>Put a ★ on <a href="https://github.com/haifengl/smile">GitHub</a></li>
<li>Request new features or give your feedback in the <a href="https://github.com/haifengl/smile/issues">GitHub issues</a></li>
<li>Fork the project on <a href="https://github.com/haifengl/smile/">GitHub</a>
and create a <a href="https://github.com/haifengl/smile">Pull Request</a>.</li>
<li>Discuss live with other community members on
<a href="https://gitter.im/haifengl/smile?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/haifengl/smile.svg" alt="Gitter" style="max-width:100%;"></a></li>
</ul>
</div>
-->
<div>
<p style="font-size: 16px; font-weight: 500; color: #555;">
Built-in Algorithms:
</p>
<dl>
<dt><a href="api/java/smile/classification/package-summary.html">Classification</a></dt>
<dd><p>
<a href="api/java/smile/classification/DecisionTree.html">Decision Trees</a>,
<a href="api/java/smile/classification/AdaBoost.html">AdaBoost</a>,
<a href="api/java/smile/classification/GradientTreeBoost.html">Gradient Boosting</a>,
<a href="api/java/smile/classification/RandomForest.html">Random Forest</a>,
<a href="api/java/smile/classification/LogisticRegression.html">Logistic Regression</a>,
<a href="api/java/smile/classification/MLP.html">Neural Networks</a>,
<a href="api/java/smile/classification/SVM.html">Support Vector Machines</a>,
<a href="api/java/smile/classification/RBFNetwork.html">RBF Networks</a>,
<a href="api/java/smile/classification/Maxent.html">Maximum Entropy Classifier</a>,
<a href="api/java/smile/classification/NaiveBayes.html">Generic Naïve Bayes Classifier</a>,
<a href="api/java/smile/classification/DiscreteNaiveBayes.html">Naïve Bayes Document Classfier</a>,
<a href="api/java/smile/classification/FLD.html">Fisher</a> /
<a href="api/java/smile/classification/LDA.html">Linear</a> /
<a href="api/java/smile/classification/QDA.html">Quadratic</a> /
<a href="api/java/smile/classification/RDA.html">Regularized Discriminant Analysis</a>,
<a href="api/java/smile/classification/PlattScaling.html">Platt Scaling</a>,
<a href="api/java/smile/classification/IsotonicRegressionScaling.html">Isotonic Regression Scaling</a>,
<a href="api/java/smile/classification/OneVersusOne.html">One vs. One</a>,
<a href="api/java/smile/classification/OneVersusRest.html">One vs. Rest</a>
</p></dd>
<dt><dt><a href="api/java/smile/regression/package-summary.html">Regression</a></dt>
<dd><p>
<a href="api/java/smile/regression/OLS.html">Linear Regression</a>,
<a href="api/java/smile/regression/LASSO.html">LASSO</a>,
<a href="api/java/smile/regression/ElasticNet.html">ElasticNet</a>,
<a href="api/java/smile/regression/RidgeRegression.html">Ridge Regression</a>,
<a href="api/java/smile/regression/RegressionTree.html">Regression Trees</a>,
<a href="api/java/smile/regression/GradientTreeBoost.html">Gradient Boosting</a>,
<a href="api/java/smile/regression/RandomForest.html">Random Forest</a>,
<a href="api/java/smile/regression/RBFNetwork.html">RBF Networks</a>,
<a href="api/java/smile/regression/MLP.html">Neural Networks</a>,
<a href="api/java/smile/regression/SVR.html">Support Vector Regression</a>,
<a href="api/java/smile/regression/GaussianProcessRegression.html">Gaussian Process</a>,
<a href="api/java/smile/glm/GLM.html">Generalized Linear Model</a>
</p></dd>
<dt><a href="api/java/smile/feature/package-summary.html">Feature Engineering and Selection</a></dt>
<dd><p>
<a href="api/java/smile/feature/Bag.html">Bag of Words</a>,
<a href="api/java/smile/feature/SparseOneHotEncoder.html">Sparse One Hot Encoding</a>,
<a href="api/java/smile/feature/Standardizer.html">Standardizer</a>,
<a href="api/java/smile/feature/RobustStandardizer.html">Robust Standardizer</a>,
<a href="api/java/smile/feature/MaxAbsScaler.html">Maximum Absolute Value Scaler</a>,
<a href="api/java/smile/feature/WinsorScaler.html">Winsor Scaler</a>,
<a href="api/java/smile/feature/Normalizer.html">Normalizer</a>,
<a href="api/java/smile/feature/GAFE.html">Genetic Algorithm based Feature Selection</a>,
<a href="api/java/smile/classification/RandomForest.html#importance--">Ensemble Learning based Feature Selection</a>,
<a href="api/java/smile/feature/TreeSHAP.html">TreeSHAP</a>,
<a href="api/java/smile/feature/SignalNoiseRatio.html">Signal Noise ratio</a>,
<a href="api/java/smile/feature/SumSquaresRatio.html">Sum Squares ratio</a>
</p></dd>
<dt><a href="api/java/smile/projection/package-summary.html">Dimension Reduction</a></dt>
<dd><p>
<a href="api/java/smile/feature/extraction/PCA.html">PCA</a>,
<a href="api/java/smile/feature/extraction/KernalPCA.html">Kernel PCA</a>,
<a href="api/java/smile/feature/extraction/ProbabilisticPCA.html">Probabilistic PCA</a>,
<a href="api/java/smile/feature/extraction/GHA.html">Generalized Hebbian Algorithm</a>,
<a href="api/java/smile/feature/extraction/RandomProjection.html">Random Project</a>,
<a href="api/java/smile/ica/ICA.html">ICA</a>
</p></dd>
<dt><a href="api/java/smile/validation/package-summary.html">Model Validation</a></dt>
<dd><p>
<a href="api/java/smile/validation/CrossValidation.html">Cross Validation</a>,
<a href="api/java/smile/validation/LOOCV.html">Leave-One-Out Validation</a>,
<a href="api/java/smile/validation/Bootstrap.html">Bootstrap</a>,
<a href="api/java/smile/validation/ConfusionMatrix.html">Confusion Matrix</a>,
<a href="api/java/smile/validation/Hyperparameters.html">Hyperparameter Tuning</a>,
<a href="api/java/smile/validation/metric/AUC.html">AUC</a>,
<a href="api/java/smile/validation/metric/LogLoss.html">LogLoss</a>,
<a href="api/java/smile/validation/metric/CrossEntropy.html">CrossEntropy</a>,
<a href="api/java/smile/validation/metric/Accuracy.html">Accuracy</a>,
<a href="api/java/smile/validation/metric/Error.html">Error</a>,
<a href="api/java/smile/validation/metric/Fallout.html">Fallout</a>,
<a href="api/java/smile/validation/metric/FDR.html">FDR</a>,
<a href="api/java/smile/validation/metric/FScore.html">F-Score</a>,
<a href="api/java/smile/validation/metric/Precision.html">Precision</a>,
<a href="api/java/smile/validation/metric/Recall.html">Recall</a>,
<a href="api/java/smile/validation/metric/Sensitivity.html">Sensitivity</a>,
<a href="api/java/smile/validation/metric/Specificity.html">Specificity</a>,
<a href="api/java/smile/validation/metric/MatthewsCorrelation.html">Matthews Correlation Coefficient</a>,
<a href="api/java/smile/validation/metric/MSE.html">MSE</a>,
<a href="api/java/smile/validation/metric/RMSE.html">RMSE</a>,
<a href="api/java/smile/validation/metric/RSS.html">RSS</a>,
<a href="api/java/smile/validation/metric/R2.html">R2</a>,
<a href="api/java/smile/validation/metric/MeanAbsoluteDeviation.html">Mean Absolute Deviation</a>,
<a href="api/java/smile/validation/metric/RandIndex.html">Rand Index</a>,
<a href="api/java/smile/validation/metric/AdjustedRandIndex.html">Adjusted Rand Index</a>,
<a href="api/java/smile/validation/metric/MutualInformation.html">Mutual Information Score</a>,
</p></dd>
<dt><a href="api/java/smile/clustering/package-summary.html">Clustering</a></dt>
<dd><p>
<a href="api/java/smile/clustering/HierarchicalClustering.html">Hierarchical Clustering</a>,
<a href="api/java/smile/clustering/CLARANS.html">CLARANS</a>,
<a href="api/java/smile/clustering/DBSCAN.html">DBSCAN</a>,
<a href="api/java/smile/clustering/DENCLUE.html">DENCLUE</a>,
<a href="api/java/smile/clustering/KMeans.html">K-Means</a>,
<a href="api/java/smile/clustering/XMeans.html">X-Means</a>,
<a href="api/java/smile/clustering/GMeans.html">G-Means</a>,
<a href="api/java/smile/clustering/KModes.html">K-Modes</a>,
<a href="api/java/smile/clustering/DeterministicAnnealing.html">Deterministic Annealing</a>,
<a href="api/java/smile/clustering/SIB.html">Sequential Information Bottleneck</a>,
<a href="api/java/smile/clustering/SpectralClustering.html">Spectral Clustering</a>,
<a href="api/java/smile/clustering/MEC.html">Minimum Entropy Clustering</a>
</p></dd>
<dt><a href="api/java/smile/vq/package-summary.html">Vector Quantization</a></dt>
<dd><p>
<a href="api/java/smile/vq/BIRCH.html">BIRCH</a>,
<a href="api/java/smile/vq/SOM.html">Self-Organizing Maps</a>,
<a href="api/java/smile/vq/NeuralGas.html">Neural Gas</a>,
<a href="api/java/smile/vq/GrowingNeuralGas.html">Growing Neural Gas</a>,
<a href="api/java/smile/vq/NeuralMap.html">Neural Map</a>
</p></dd>
<dt><a href="api/java/smile/association/package-summary.html">Association Rules</a></dt>
<dd><p>
<a href="api/java/smile/association/FPGrowth.html">Frequent Itemset Mining</a>,
<a href="api/java/smile/association/ARM.html">Association Rule Mining</a>
</p></dd>
<dt><a href="api/java/smile/manifold/package-summary.html">Manifold learning</a></dt>
<dd><p>
<a href="api/java/smile/manifold/IsoMap.html">IsoMap</a>,
<a href="api/java/smile/manifold/LLE.html">LLE</a>,
<a href="api/java/smile/manifold/LaplacianEigenmap.html">Laplacian Eigenmap</a>,
<a href="api/java/smile/manifold/TSNE.html">t-SNE</a>,
<a href="api/java/smile/manifold/UMAP.html">UMAP</a>,
<a href="api/java/smile/manifold/MDS.html">Classical MDS</a>,
<a href="api/java/smile/manifold/IsotonicMDS.html">Isotonic MDS</a>,
<a href="api/java/smile/manifold/SammonMapping.html">Sammon Mapping</a>
</p></dd>
<dt><a href="api/java/smile/neighbor/package-summary.html">Nearest Neighbor Search</a></dt>
<dd><p>
<a href="api/java/smile/neighbor/LinearSearch.html">Linear Search</a>,
<a href="api/java/smile/neighbor/BKTree.html">BK-Tree</a>,
<a href="api/java/smile/neighbor/CoverTree.html">Cover Tree</a>,
<a href="api/java/smile/neighbor/KDTree.html">KD-Tree</a>,
<a href="api/java/smile/neighbor/LSH.html">LSH</a>,
<a href="api/java/smile/neighbor/MPLSH.html">Multi-Probe LSH</a>,
<a href="api/java/smile/hash/SimHash.html">SimHash</a>
</p></dd>
<dt><a href="api/java/smile/sequence/package-summary.html">Sequence Learning</a></dt>
<dd><p>
<a href="api/java/smile/sequence/HMM.html">Hidden Markov Model</a>,
<a href="api/java/smile/sequence/CRF.html">Conditional Random Field</a>
</p></dd>
<dt><a href="api/java/smile/timeseries/package-summary.html">Time Series</a></dt>
<dd><p>
<a href="api/java/smile/timeseries/TimeSeries.html#acf-double:A-int-">ACF</a>,
<a href="api/java/smile/timeseries/TimeSeries.html#pacf-double:A-int-">PACF</a>,
<a href="api/java/smile/timeseries/BoxTest.html">Box-Pierce and Ljung-Box Test</a>,
<a href="api/java/smile/timeseries/AR.html">AR</a>,
<a href="api/java/smile/timeseries/ARMA.html">ARMA</a>
</p></dd>
<dt><a href="api/java/smile/nlp/package-summary.html">Natural Language Processing</a></dt>
<dd><p>
<a href="api/java/smile/nlp/tokenizer/SimpleSentenceSplitter.html">Sentence Splitter</a>,
<a href="api/java/smile/nlp/tokenizer/SimpleTokenizer.html">Tokenizer</a>,
<a href="api/java/smile/nlp/collocation/Bigram.html">Bigram Extractor</a>,
<a href="api/java/smile/nlp/collocation/NGram.html">Phrase Extractor</a>,
<a href="api/java/smile/nlp/keyword/CooccurrenceKeywords.html">Keyword Extractor</a>,
<a href="api/java/smile/nlp/stemmer/PorterStemmer.html">Porter Stemmer</a>,
<a href="api/java/smile/nlp/stemmer/LancasterStemmer.html">Lancaster Stemmer</a>,
<a href="api/java/smile/nlp/pos/HMMPOSTagger.html">POS Tagging</a>,
<a href="api/java/smile/nlp/relevance/BM25.html">Relevance Ranking</a>,
<a href="api/java/smile/nlp/embedding/Word2Vec.html">Word2Vec</a>
</p></dd>
<dt><a href="api/java/smile/math/package-summary.html">Mathematics</a></dt>
<dd><p>
<a href="api/java/smile/gap/package-summary.html">Genetic Algorithms</a>,
<a href="api/java/smile/graph/package-summary.html">Graph</a>,
<a href="api/java/smile/hash/package-summary.html">Hash Functions</a>,
<a href="api/java/smile/interpolation/package-summary.html">Interpolation</a>,
<a href="api/java/smile/sort/package-summary.html">Sort Algorithms</a>,
<a href="api/java/smile/taxonomy/package-summary.html">Taxonomy</a>,
<a href="api/java/smile/wavelet/package-summary.html">Wavelet</a>
</p></dd>
<dt><a href="api/java/smile/math/matrix/package-summary.html">Linear Algebra</a></dt>
<dd><p>
<a href="api/java/smile/math/matrix/Matrix.html">Dense Matrix</a>,
<a href="api/java/smile/math/matrix/BandMatrix.html">Band Matrix</a>,
<a href="api/java/smile/math/matrix/SparseMatrix.html">Sparse Matrix</a>,
<a href="api/java/smile/math/matrix/Matrix.LU.html">LU</a>,
<a href="api/java/smile/math/matrix/Matrix.Cholesky.html">Cholesky</a>,
<a href="api/java/smile/math/matrix/Matrix.QR.html">QR</a>,
<a href="api/java/smile/math/matrix/Matrix.EVD.html">EVD</a>,
<a href="api/java/smile/math/matrix/Matrix.SVD.html">SVD</a>,
<a href="api/java/smile/math/matrix/BiconjugateGradient.html">Biconjugate Gradient</a>,
<a href="api/java/smile/math/BFGS.html">BFGS</a>,
<a href="api/scala/smile/cas/index.html">Computer Algebra System</a>
</p></dd>
<dt><a href="api/java/smile/stat/package-summary.html">Statistics</a></dt>
<dd><p>
<a href="api/java/smile/stat/distribution/package-summary.html">Distributions</a>,
<a href="api/java/smile/math/random/package-summary.html">Random Number Generators</a>,
<a href="api/java/smile/stat/Hypothesis.html">Hypothesis Tests</a>
</p></dd>
</dl>
</div>
</div>
<div class="col-md-9 col-md-pull-3">
<div class="jumbotron">
<p><b>Smile</b> is a fast and comprehensive machine learning engine.</p>
<div id="testimonial-slider" class="owl-carousel">
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
Smile now seems to be the go-to general-purpose machine learning library
for those working in the Java and Scala worlds — a JVM Scikit-learn, if you will.
I would actually find it hard to believe that you are working in that ecosystem
and are unaware of the project.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- KDnuggets
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
Smile gives you a broad range of algorithms out of the box, ranging from simple
functions like classification and regression to sophisticated offerings like
natural language processing. And all you need is Java, or any JVM language.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- InfoWorld
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
Smile will amaze you with fast and extensive applications,
efficient memory usage and a large set of machine learning algorithms for Classification,
Regression, Nearest Neighbor Search, Feature Selection, etc.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- ActiveWizards
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
To say that I am satisfied with SMILE would be an understatement. It's truly one of the
hidden gems in the Java framework ecosystem today.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- Patrick Martin,
<small>Principal Architect at Citi</small>
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
LinkedIn used Smile to train its workforce on machine learning for its AI Academy.
Smile was chosen because it's a Java library with a friendly open source license
and supports a wide range of common algorithms.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- Ben McCann, <small>Head of Hire Matching at LinkedIn</small>
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
We leverage Smile's impressive capability in various machine
learning tasks: feature engineering, modeling, visualization,
benchmark test, etc. Thanks Smile and strongly recommend it
to every engineer who is interested in machine learning.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- Ray Ma,
<small>Technology Manager at moKredit</small>
</h3>
</div>
</div>
</div>
<div class="testimonial">
<div class="testimonial-content">
<p class="testimonial-description">
SMILE is a great Java library for a wide range of AI tasks. Building bespoke methods atop
SMILE run considerably faster than implementations in other languages more
associated with data science.
</p>
<div class="testimonial-review">
<h3 class="testimonial-title">
- Shantanu Lodh,
<small>Senior Data Scientist at Hidden Depth AI, UK</small>
</h3>
</div>
</div>
</div>
</div>
<div id="github-buttons-wrapper" style="margin-top: 30px;">
<a class="github-button" href="https://github.com/haifengl/smile" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star haifengl/smile on GitHub">Star</a>
<a class="github-button" href="https://github.com/haifengl" data-size="large" aria-label="Follow @haifengl on GitHub">Follow @haifengl</a>
<a class="github-button" href="https://github.com/haifengl/smile/fork" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork haifengl/smile on GitHub">Fork</a>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Speed</h2>
<p class="lead">
With advanced data structures and algorithms, Smile delivers the state-of-art performance.
</p>
<p>Compared to this third-party <a href="https://github.com/szilard/benchm-ml">benchmark</a>,
Smile outperforms R, Python, Spark, H2O, xgboost significantly. Smile is several times
faster than the closest competitor. The memory usage is also very efficient. If we can train
advanced machine learning models on a PC, why buy a cluster?
</p>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<div style="width: 100%; display: inline-block; text-align: center;">
<img src="images/benchm-ml.png" style="width: 100%;" />
<div class="caption" style="min-width: 272px;">Training Time (seconds)</div>
</div>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Ease of Use</h2>
<p class="lead">
Write applications quickly in Java, Scala, or any JVM languages.
Data scientists and developers can speak the same language now!
</p>
<p>Smile provides hundreds advanced algorithms with clean interface. Scala/Kotlin
API also offers high-level operators that make it easy to build machine learning apps.
And you can use it interactively from the shell, embedded in Scala.
</p>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<ul class="nav nav-tabs">
<li class="active"><a href="#java_1" data-toggle="tab">Java</a></li>
<li><a href="#scala_1" data-toggle="tab">Scala</a></li>
<li><a href="#kotlin_1" data-toggle="tab">Kotlin</a></li>
<li><a href="#clojure_1" data-toggle="tab">Clojure</a></li>
<li><a href="#groovy_1" data-toggle="tab">Groovy</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="java_1">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-java"><code>
var iris = Read.arff("iris.arff");
var model = RandomForest.fit(Formula.lhs("class"), iris);
println(model.metrics());
</code></pre>
</div>
<div class="caption">DataFrame, Model Fitting, and Metrics</div>
</div>
<div class="tab-pane" id="scala_1">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-scala"><code>
val iris = read.arff("iris.arff")
val model = randomForest("class" ~, iris)
println(model.metrics)
</code></pre>
</div>
<div class="caption">DataFrame, Model Fitting, and Metrics</div>
</div>
<div class="tab-pane" id="kotlin_1">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-kotlin"><code>
val iris = read.arff("iris.arff")
val model = randomForest(Formula.lhs("class"), iris)
println(model.metrics())
</code></pre>
</div>
<div class="caption">DataFrame, Model Fitting, and Metrics</div>
</div>
<div class="tab-pane" id="clojure_1">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-clj"><code>
(let [iris (read-arff
"data/weka/iris.arff")
model (random-forest
(Formula/lhs "class") iris)]
(.metrics model))
</code></pre>
</div>
<div class="caption">DataFrame, Model Fitting, and Metrics</div>
</div>
<div class="tab-pane" id="groovy_1">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-groovy"><code>
var iris = Read.arff("iris.arff")
var model = RandomForest.fit(Formula.lhs("class"), iris)
println model.metrics()
</code></pre>
</div>
<div class="caption">DataFrame, Model Fitting, and Metrics</div>
</div>
</div>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Comprehensive</h2>
<p class="lead">
The most complete machine learning engine. Smile covers every aspect of machine learning.
</p>
<p>LLM, computer vision, deep learning, classification, regression, clustering, association rule mining, feature selection,
manifold learning, multidimensional scaling, genetic algorithm, missing value imputation,
efficient nearest neighbor search, etc. See the sidebar for a list of available algorithms.
</p>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<div style="width: 100%; display: inline-block; text-align: center;">
<img src="images/brain.png" style="width: 100%;" />
</div>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Natural Language Processing</h2>
<p class="lead">
Understanding human language, and the intent behind our words.
</p>
<p>GenAI with Llama 3 on JVM (more coming). Smile also includes many classic
NLP algorithms such as tokenizers, stemming, word2vec, phrase detection,
part-of-speech tagging, keyword extraction, named entity recognition,
sentiment analysis, relevance ranking, taxomony, etc.
</p>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<div style="width: 100%; display: inline-block; text-align: center;">
<img src="images/ml-word-cloud.jpg" style="width: 100%;" />
</div>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Mathematics and Statistics</h2>
<p class="lead">
Hidden gems in Smile.
</p>
<p>From special functions, linear algebra, to random number generators,
statistical distributions and hypothesis tests, Smile provides an
advanced numerical computing environment. In additions, graph,
wavlets, and a variety of interpolation algorithms are implemented.
Smile even includes a computer algerbra system.
</p>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<ul class="nav nav-tabs">
<li class="active"><a href="#scala_2" data-toggle="tab">Matrix</a></li>
<li><a href="#scala_3" data-toggle="tab">Statistics</a></li>
<li><a href="#scala_4" data-toggle="tab">CAS</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="scala_2">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-java"><code>
var A = Matrix.randn(3, 3);
double[] x = {1.0, 2.0, 3.0};
var lu = A.lu();
lu.solve(x);
lu.inverse().mm(A);
</code></pre>
</div>
<div class="caption">Linear Algebra</div>
</div>
<div class="tab-pane" id="scala_3">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-java"><code>
int[] bins1 = {8, 13, 16, 10, 3};
int[] bins2 = {4, 9, 14, 16, 7};
Hypothesis.chisq.test(bins1, bins2);
</code></pre>
</div>
<div class="caption">Statistics</div>
</div>
<div class="tab-pane" id="scala_4">
<div class="code" style="text-align: left;">
<pre class="prettyprint lang-scala"><code>
val x = Var("x")
val y = Var("y")
val e = x**2 + y**3 + x**2 * cot(y**3)
val dx = e.d(x)
println(dx)
</code></pre>
</div>
<div class="caption">Computer Algebra System</div>
</div>
</div>
</div>
</div>
<div class="row row-padded">
<div class="col-md-7 col-sm-7">
<h2>Data Visualization</h2>
<p class="lead">
Interactive 2D/3D math plot.
</p>
<p>Scatter plot, line plot, staircase plot, bar plot, box plot, heatmap, hexmap, histogram, qq plot, surface,
grid, contour, dendrogram, sparse matrix visualization, wireframe, etc. Smile also supports declarative
data visualization that compiles to <a href="https://vega.github.io/vega-lite/">Vega-Lite</a>.
</p>
<div id="vegalite"></div>
<script type="text/javascript">
var spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"width": 400,
"height": 300,
"title": "Choropleth of Unemployment Rate per County",
"data": {
"url": "https://vega.github.io/vega-lite/examples/data/us-10m.json",
"format": {
"type": "topojson",
"feature": "counties"
}
},
"transform": [{
"lookup": "id",
"from": {
"data": {
"url": "https://vega.github.io/vega-lite/examples/data/unemployment.tsv"
},
"key": "id",
"fields": ["rate"]
}
}],
"projection": {
"type": "albersUsa"
},
"mark": "geoshape",
"encoding": {
"color": {
"field": "rate",
"type": "quantitative"
}
}
};
vegaEmbed('#vegalite', spec);
</script>
</div>
<div class="col-md-5 col-sm-5 col-padded-top col-center">
<div style="width: 100%; display: inline-block; text-align: center;">
<img src="images/math.png" style="width: 100%;" />
<img src="gallery/smile-demo-ann.png" style="width: 100%;" />
</div>
</div>
</div>
</div>
</div>
</div>
<a href=https://github.com/haifengl/smile><img style="position: fixed; top: 0; right: 0; border: 0" src=/images/forkme_right_orange.png alt="Fork me on GitHub"></a>
<!-- Place this tag right after the last button or just before your close body tag. -->
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>