skpro.workflow package

Submodules

skpro.workflow.base module

class skpro.workflow.base.Controller[source]

Bases: object

Controller base class

Notes

Must implement an identifier and run function

identifier()[source]
run(model)[source]
class skpro.workflow.base.Model(instance, tuning=None, group=None, name=None, database=None)[source]

Bases: object

Model base class

Parameters:
  • instance
  • tuning
  • group
  • database
clone()[source]
identifier(with_tuning=False)[source]
class skpro.workflow.base.View[source]

Bases: object

View base class

Notes

Must implement the parse method

parse(data)[source]

skpro.workflow.cross_validation module

class skpro.workflow.cross_validation.CrossValidationController(data, loss_func, cv=None, tune=False, optimizer=None)[source]

Bases: skpro.workflow.base.Controller

CrossValidation controller

Parameters:
  • data
  • loss_func
  • cv
  • tune
  • optimizer (optional callable(model, search_space, scoring, cv), default=None) – Callable that returns an optimizer such as RandomizedSearchCV etc. that will be used for the hyperparameter search.
description()[source]
identifier()[source]
run(model)[source]
class skpro.workflow.cross_validation.CrossValidationView(with_tuning=False, with_ranks=True)[source]

Bases: skpro.workflow.base.View

Cross validation view

Parameters:
  • with_tuning
  • with_ranks
parse(data)[source]
skpro.workflow.cross_validation.grid_optimizer(verbose=0, n_jobs=1)[source]
skpro.workflow.cross_validation.random_optimizer(n_iter=10, verbose=0, n_jobs=1)[source]

skpro.workflow.utils module

class skpro.workflow.utils.InfoController[source]

Bases: skpro.workflow.base.Controller

identifier()[source]
run(model)[source]
class skpro.workflow.utils.InfoView(key='description', with_group=False)[source]

Bases: skpro.workflow.base.View

parse(data)[source]
class skpro.workflow.utils.ItemView(key)[source]

Bases: skpro.workflow.base.View

Item view

parse(data)[source]
class skpro.workflow.utils.RawView[source]

Bases: skpro.workflow.base.View

Raw view

parse(data)[source]

Module contents