Questions tagged [smile]

Smile is a fast and comprehensive machine learning system for using in Java, Scala or any other JVM languages. Smile supports many machine learning techniques, including classification, regression, clustering, association rule mining, feature selection, manifold learning, genetic algorithm, missing value imputation, nearest neighbor search, etc as well as natural language processing and common math and stat operations.

Smile is a fast and comprehensive machine learning system for using in Java, Scala or any other JVM languages. Smile supports many machine learning techniques, including classification, regression, clustering, association rule mining, feature selection, multidimensional scaling, manifold learning, genetic algorithm, missing value imputation, nearest neighbor search, etc. as well as natural language processing and common math and stat operations.

See https://haifengl.github.io/smile/ for the complete list of supported algorithms.

Smile is open source, Apache License 2.0, and the source code is available on Github: https://github.com/haifengl/smile.

Any question on the usage of Smile library or issues faced in integrating Smile etc can use the Smile tag.

You can check the Smile FAQ: https://haifengl.github.io/smile/faq.html.

25 questions
3
votes
1 answer

sbt: how to depend on sub module of a git project

I have a project that depends on: "com.github.haifengl" % "smile-core" % "1.1.0", "com.github.haifengl" % "smile-scala_2.11" % "1.1.0", and want to modify sbt to use the latest master of the same project from github. I've done this with other…
user48956
  • 14,850
  • 19
  • 93
  • 154
2
votes
2 answers

Usage of arpack-ng/openblas/javacpp in the smile java library

I'm trying to set up the Smile machine learning library in Java but I'm having some issues getting some dependencies to work. Currently I am on a Fedora machine, but I'd like this to work on any machine, just like a normal jar. Here is some example…
2
votes
1 answer

Smile - Model Persistence - How to write models to HDFS?

I am trying to use Smile in my Scala project which uses Spark and HDFS. For reusability of my models, I need to write them to HDFS. Right now I am using the write object, checking if the path exists beforehand and creating it if it does not…
1
vote
1 answer

smile scala api: create Dataframe from Array

I am trying to integrate smile in my scala code base. In particular, I would like to train a Random Forest Classifier. In the FAQ it is written: Most Smile algorithms take simple double[] as input. So you can use your favorite methods or library to…
1
vote
1 answer

java.lang.UnsatisfiedLinkError: no mkl_rt in java.library.path

I have a java8 application in windows10 that uses smile library. When i run the LLE algorithm for example i was getting this warning: smile-netlib module is not available in the classpath. Pure Java matrix library will be employed. So I decided…
vicangel
  • 162
  • 2
  • 18
1
vote
0 answers

how to create a CLARANS cluster using distance matrix?

When I use CLARANS cluster with coordinates, then clustering is successful. When I try to write clustering with the distance matrix, then the points are grouped incorrectly. I use the haifengl/smile git repository, which has all the clusters I need.…
tambovflow
  • 153
  • 1
  • 1
  • 7
1
vote
1 answer

How to cluster my data with a custom distance matrix using smile library's CLARANS method

I want cluster my data with a custom distance matrix rather than the built-in algorithms (i.e Euclidean). And there seems to be no clear way of doing it. I've tried to add some of my code to the demos in the Smile project. Also tried to do it with…
1
vote
0 answers

Is it possible using the Smile ML library to retrain a model once new training examples arrive?

I am using the Smile library in Scala (similar story holds in Java) to compute a linear regression model of some training examples. I create the model using the ridge function. val x = readCsv._1 // contains the features val y = readCsv._2 //…
Maarten
  • 207
  • 2
  • 13
1
vote
0 answers

problems adding smile statistics library to netbeans

Hiho, I'm having some problems adding the library found here to netbeans: https://github.com/haifengl/smile/releases As you can see there's no jar available and the folder structure seems a bit off. I've tried adding the whole thing, or eg…
1
vote
1 answer

Setting up smile using scala

I am new to scala and trying to use smile on windows. I am able to use the shell, but unable to run smile from .bat-script. I have written the following: ::#! @echo off call scala %0 %* goto :eof ::!# println("Hello, Welcome to Scala…
Jens de Bruijn
  • 939
  • 9
  • 25
0
votes
0 answers

MercerKernel and Kernel PCA using smile in Java

Smile KPCA Code Image So, I came across the concept of Kernel PCA for feature extraction. Currently, I am using smile's Java jar for kernel pca. While reading about their code, I also have doubts about Mercer Kernel. I want someone to explain the…
Riya
  • 11
  • 1
0
votes
0 answers

Django ckeditor. Smiles and src path. How change to URI from URL?

When I add a smile - img src is smiley
Maniac
  • 1
  • 1
0
votes
1 answer

Clojure: unable to import specific methods from java class

Possible linked to Cannot call particular java method from Clojure Using the smile package, I've upgraded to 3.0.0 and failing to call some methods. My Leiningen project.clj has the following import [com.github.haifengl/smile-core "3.0.0"] Now in…
alex314159
  • 3,159
  • 2
  • 20
  • 28
0
votes
1 answer

is it possible to controll field order in serialization with Jackson Smile dataformat

I have a simple Java class that looks like this: public class AnnotationData implements Serializable { public AnnotationData(String filename) { this.filename = filename; } private List annotationLines = new…
Vlad
  • 156
  • 12
0
votes
0 answers

Timing for Delay Interval using SMILE for Python

Our lab is running a memory task where a patient is dosed with a drug or placebo partway through a task structure. We are using an existing task, and modifying it in several ways in order to fit the drug administering. One of these is altering a…
1
2