المشاريع
عرض على GitHub
vsha96/mllib
حول
Machine Learning in Haskell
الذكاء الاصطناعي وتعلّم الآلةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلMllib: Machine learning library in Haskell
The collection of machine learning algorithms that allows developers to stay within the Haskell language.
Documentation will be available soon!
Installation and run
- Download and install the Haskell Tool Stack
curl -sSL https://get.haskellstack.org/ | sh - Clone the repository to download the latest version of this library
git clone [email protected]:vsha96/mllib.git - First things to try out:
- try to use available models in app/Main.hs
- in the directory of package
stack run
See troubleshooting installation issues
Available models
The models are divided by tasks or by structure (see src/Mllib). There are also support modules.
Clustering:
Classification:
Trees:
Mllib.Tree.Decision(classification only)
Example of usage:
-- file app/Main.hs
import Mllib.Types
import Mllib.Tree.Decision
main :: IO ()
main = do
let
x = [[1], [2], [3], [4]]
y = [0, 0, 2, 2]
x_train = map vector x
x_test = map vector [[0], [1.8], [3.3], [10]]
modelDTree = fitDecisionTree treeSetup x_train y
putStr "Predict: "
print $ predict modelDTree x_test
Output:Predict: [0,0,2,2]
See more examples in app/Main.hs
Contributing
Any help is welcome! Please make sure to read the contributor guidelines before opening a new issue.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…