mrscake
index
/home/kramm/c/mrscake/mrscake.so

Python interface to the mrscake machine-learning library

 
Classes
       
__builtin__.object
DataSet
Model

 
class DataSet(__builtin__.object)
    DataSet stores training data (examples of features and
desired corresponding output values). DataSets can be used
to train models (in order to do predictions.)
 
  Methods defined here:
add(...)
add({feature1:value1,feature2:value2},output)
 
Adds a row of training data to the model.
save(...)
save(filename)
 
Save training data to a file.
train(...)
train()
 
Train a classifier

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0xb73f5880>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Model(__builtin__.object)
    Model can be used to predict values from (so far unknown)
input data. Models are "lightweight", in that they don't
store any data other than that needed to do predictions (in
particular, they don't contain any explicit training data)
 
  Methods defined here:
generate_code(...)
generate_code(language)
 
Generate code for this model
predict(...)
predict({feature1:value1,feature2:value2})
 
Evaluate the model for the given input. I.e. tries to estimate the target value (do a prediction).
save(...)
save(filename)
 
Save the model to a file

 
Functions
       
add_server(...)
add_server(host, port=3075)
 
A training run can be distributed across servers. In order
to do that, run "mrscake-job-server" on every server (by default,
it listens on port 3075), and then add the servers using add_server().
load_data(...)
load_data()
 
Load a dataset that has been saved using DataSet.save().
load_model(...)
load_model()
 
Load a model that has been saved using Model.save().
model_names(...)
model_names()
 
Returns an array of model names. Any of these model names can be passed
to DataSet.train() to train a specific model. Notice that not every model
type works for every data set.
set_parameter(...)
set_parameter(key,value)
 
Set an internal parameter.