learn_model -- Program that learns machine translation quality
estimation models
learn_model is a program with which is possible to learn models for
sentence-pair quality estimation models using the algorithms implemented
in the scikit-learn machine learning toolkit.
It defines functions to work with different machine learning
algorithms as well as feature selection techniques and features
preprocessing. The only dependency so far is the sklearn package.
ConfigParser is used to parse the configuration file which has a similar
layout to the Java properties file.
Author:
Jose' de Souza
Copyright:
2012. All rights reserved.
License:
Apache License 2.0
Contact:
jose.camargo.souza@gmail.com
Date:
2012-11-01
Updated:
2012-11-01
|
set_selection_method(config,
threshold=.25)
Given the configuration settings, this function instantiates the
configured feature selection method initialized with the preset
parameters. |
source code
|
|
|
|
|
|
|
optimize_model(estimator,
X_train,
y_train,
params,
scores,
folds,
verbose,
n_jobs) |
source code
|
|
|
set_learning_method(config,
X_train,
y_train)
Instantiates the sklearn's class corresponding to the value set in
the configuration file for running the learning method. |
source code
|
|
|
fit_predict(config,
X_train,
y_train,
X_test=None,
y_test=None)
Uses the configuration dictionary settings to train a model using the
specified training algorithm. |
source code
|
|
|
cross_validate(config,
X_train,
y_train)
Uses the configuration dictionary settings to train a model using the
specified training algorithm. |
source code
|
|
|
|
|
|
|
|