writers¶
geocoding.writers.
write_clf_space
(fpath, clf_name, best_params=None)[source]¶Writes clf_name classifier configuration in fpath. If best_params is given then writes the best performing configuration of clf_name.
- Parameters
fpath (str) – Path to write
clf_name (str) – Name of classifier to consider
best_params (dict, optional) – Has hyperparametrs as keys and the corresponding values as values
- Returns
None
geocoding.writers.
write_feats_space
(fpath)[source]¶Writes the features configuration in fpath.
- Parameters
fpath (str) – Path to write
- Returns
None
geocoding.writers.
write_predictions
(fpath, df, preds)[source]¶Creates a csv file to present the predictions (in (predicted label, score) pairs).
- Parameters
fpath (str) – File path to write
df (pandas.DataFrame) – Contains the data points to which the predictions refer to
preds (list) – Contains (predicted label, score) pairs
- Returns
None