mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-05 22:04:27 +08:00
16 lines
395 B
Python
Executable File
16 lines
395 B
Python
Executable File
from Numeric import *
|
|
import RandomArray
|
|
from ML.DecTree import ID3,CrossValidate,Forest
|
|
from ML.DecTree import randomtest
|
|
|
|
if __name__ == '__main__':
|
|
examples,attrs,nPossibleVals = randomtest.GenRandomExamples(nExamples=100)
|
|
forest = Forest.Forest()
|
|
forest.Grow(examples,attrs,nPossibleVals,nTries=10)
|
|
print str(forest)
|
|
forest.Pickle('regress/RandomForest.pkl')
|
|
|
|
|
|
|
|
|