knolduslabs / ksai   0.0.4


An AI Library from Knoldus to the open source community

Scala versions: 2.12


KSAI is a machine learning library which contains various algorithms such as classification, regression, clustering and many others. It is an attempt to build machine learning algorithms with the language Scala. The library Breeze, which is again built on scala is getting used for doing the mathematical functionalities.

KSAI mainly used Scala’s in built case classes, Future and some of the other cool features. It has also used Akka in some places and tried doing things in a asynchronous fashion. In order to start exploring the library the test cases might be good start. Right now it might not be that easy to use the library with limited documentation and unclear api, however the committers will update them in the near future.


You can use the libraries through Maven central repository by adding the following to your project pom.xml file


Or in build.sbt

    libraryDependencies += "io.github.knolduslabs" %% "ksai" % "0.0.4"


Below are some of the algorithms that has been implemented

  • Neural Network
  • Association Rule
  • Decision Tree
  • Random Forest
  • KNN
  • K-Means
  • Naive Bayes
  • Logistic Regression
  • PCA
  • LDA
  • Single Noise Ratio
  • Sum Square Ratio


While trying to learn the algorithms we need data and below are some of the links from where one can easily get data


  • Pranjut Gogoi
  • Girish Bharti
  • Anuj Saxena
  • Nitin Aggarwal
  • Akshansh Jain
  • Shubham Verma

Note: KSAI is inspired from a java based ml library called SMILE.