ml.linear Module
Overview
ml.linear.feature Class
Property
A ml.linear.feature
instance has the following properties:
Constructor
linear.feature(x[]:list) {block?}
Creates an instance of ml.linear.feature.
Method
ml.linear.model Class
Property
A ml.linear.model
instance has the following properties:
Method
linear.model#predict(feature:linear.feature):map
linear.model#predict_probability(feature:linear.feature):map
linear.model#get_nr_feature()
linear.model#get_nr_class()
linear.model#get_labels()
linear.model#get_decfun_coef(feat_idx:number, label_idx:number)
linear.model#get_decfun_bias(label_idx:number)
ml.linear.parameter Class
Property
A ml.linear.parameter
instance has the following properties:
Constructor
linear.parameter() {block?}
Creates an instance of ml.linear.parameter.
Method
linear.parameter#add_weight(label:number, weight:number):reduce
ml.linear.problem Class
Property
A ml.linear.problem
instance has the following properties:
Constructor
linear.problem() {block?}
Creates an instance of ml.linear.problem.
Method
linear.problem#add_sample(sample:linear.sample):map:reduce
ml.linear.sample Class
Property
A ml.linear.sample
instance has the following properties:
Constructor
linear.sample(label:number, feature:linear.feature) {block?}
Creates an instance of ml.linear.sample.
Module Function
linear.train(prob:linear.problem, param:linear.parameter, bias?:number) {block?}