35ml.linear Module
35.1Overview
35.2ml.linear.feature Class
35.2.1Property
A ml.linear.feature
instance has the following properties:
35.2.2Constructor
linear.feature(x[]:list) {block?}
Creates an instance of ml.linear.feature.
35.2.3Method
35.3ml.linear.model Class
35.3.1Property
A ml.linear.model
instance has the following properties:
35.3.2Method
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)
35.4ml.linear.parameter Class
35.4.1Property
A ml.linear.parameter
instance has the following properties:
35.4.2Constructor
linear.parameter() {block?}
Creates an instance of ml.linear.parameter.
35.4.3Method
linear.parameter#add_weight(label:number, weight:number):reduce
35.5ml.linear.problem Class
35.5.1Property
A ml.linear.problem
instance has the following properties:
35.5.2Constructor
linear.problem() {block?}
Creates an instance of ml.linear.problem.
35.5.3Method
linear.problem#add_sample(sample:linear.sample):map:reduce
35.6ml.linear.sample Class
35.6.1Property
A ml.linear.sample
instance has the following properties:
35.6.2Constructor
linear.sample(label:number, feature:linear.feature) {block?}
Creates an instance of ml.linear.sample.
35.7Module Function
linear.train(prob:linear.problem, param:linear.parameter, bias?:number) {block?}