-
Notifications
You must be signed in to change notification settings - Fork 281
/
README.md~
54 lines (33 loc) · 1.28 KB
/
README.md~
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
DML
===
D's Machine Learning is a machine learning toolkit for python,focus on rightness but efficiency
all code is based on numpy and scipy
----------------------------------------------
Code Files
===
`./dml/NN` -the code of Neural NetWorks
`./dml/LR` -Logistic Regression,actualy It's softmax
`./dml/DT` -Decision Tree , CART algorithm
`./dml/ClUSTER` -some cluster algorithm,inculde kmeans\kmedoids\spectralCluster(todo)
`./dml/ADAB` -the adaboost algorithm
`./test/` -include some test code for DML
----------------------------------------------
Class Format
===
all class can be used in this way:(LR for example)
but there is still some different Initialization parameters in different class,also the predict function
sorry for this but some class use `pred()` and NN use `nnpred()`
a = LRC(train_images,trian_labels,nor=False)
a.train(200,True)
pred = a.predict(test_images)
----------------------------------------------
Install
===
DML is based on `numpy`,`scipy`,you should install them first
This packages uses setuptools, which is the default way of installing python modules. The install command is:(sudo is required in some system)
python setup.py build
python setup.py install
----------------------------------------------
License
===
[WTFPL](http://www.wtfpl.net/)