Home | Trees | Indices | Help |
|
---|
|
object --+ | Model
Model()
Classification model. Use its Model.load or Model.train methods to construct a new instance
Instance Methods | |||
Model |
|
||
iterable |
|
||
|
|||
Model |
|
||
Inherited from |
Properties | |
double |
bias Bias used to create the model |
bool |
is_probability Is model a probability model? |
bool |
is_regression Is model a regression model? |
str |
solver_type Solver type used to create the model |
Inherited from |
Method Details |
Create Model instance from a file (previously created by Model.save()) Note that the exact I/O exceptions depend on the stream passed in.
|
matrix and predict labels.
|
Save Model instance to a file. After some basic information about solver type, dimensions and labels the model matrix is stored as a sequence of doubles per line. The matrix is transposed, so the height is the number of features (including the bias feature) and the width is the number of classes. All numbers are represented as strings parsable either as ints (for dimensions and labels) or doubles (other values). Note that the exact I/O exceptions depend on the stream passed in.
|
|
Property Details |
biasBias used to create the model None if no bias was applied.
|
is_probabilityIs model a probability model?
|
is_regressionIs model a regression model?
|
solver_typeSolver type used to create the model
|
Home | Trees | Indices | Help |
|
---|