Milk is a machine learning kit in Python. Its focus is to provide supervised classifications and several effective classification analyses: SVMs (based on LIBSVM), nn, stochastic forest economy and decision tree. It also performs feature selection. These classifications can be combined in many ways to form different classification systems. For unsupervised learning, milk supports K clustering and affinity propagation.
Milk 0.4.0 new features: Parallel processing, perceptron and error-correcting output codes. Enhancements: Setting up random seeds in a stochastic forest economy, Defaultlearner () adds the "multi_strategy" parameter, the return value is Gridminimise, and the faster network kernel supports SVMS and S-shape fitting. A randomforest error was corrected.
Example:
Import&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp;numpy as NP import milk features = Np.random.rand ( 100,10) labels = Np.zeros (m) features[50:] = = 5 Labels[50:] = 1 learner = Milk.defaultclassifier () model = Learner.train ( features, labels) # Now I can use the model on new examples:example = Np.random.rand Print model.apply (example) example2 = Np.random.rand (example2 = 5 print model.apply (example2)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.