atm.database module

Classes

DBSession(db[, commit])

Database(dialect, database[, username, …])

Functions

try_with_session([commit])

Decorator for instance methods on Database that need a sqlalchemy session.

class atm.database.DBSession(db, commit=False)[source]

Bases: object

class atm.database.Database(dialect, database, username=None, password=None, host=None, port=None, query=None)[source]

Bases: object

Methods

complete_classifier(*args, **kwargs)

create_classifier(*args, **kwargs)

create_datarun(*args, **kwargs)

create_dataset(*args, **kwargs)

create_hyperpartition(*args, **kwargs)

from_csv(*args, **kwargs)

get_best_classifier(*args, **kwargs)

get_classifier(*args, **kwargs)

get_classifiers(*args, **kwargs)

get_datarun(*args, **kwargs)

get_dataruns(*args, **kwargs)

get_dataset(*args, **kwargs)

get_hyperpartition(*args, **kwargs)

get_hyperpartitions(*args, **kwargs)

get_maximum_y(*args, **kwargs)

get_methods(*args, **kwargs)

get_number_of_hyperpartition_errors(*args, …)

is_datatun_gridding_done(*args, **kwargs)

load_metrics(*args, **kwargs)

load_model(*args, **kwargs)

mark_classifier_errored(*args, **kwargs)

mark_datarun_complete(*args, **kwargs)

mark_datarun_running(*args, **kwargs)

mark_hyperpartition_errored(*args, **kwargs)

mark_hyperpartition_gridding_done(*args, …)

start_classifier(*args, **kwargs)

to_csv(*args, **kwargs)

complete_classifier(*args, **kwargs)[source]
create_classifier(*args, **kwargs)[source]
create_datarun(*args, **kwargs)[source]
create_dataset(*args, **kwargs)[source]
create_hyperpartition(*args, **kwargs)[source]
from_csv(*args, **kwargs)[source]
get_best_classifier(*args, **kwargs)[source]
get_classifier(*args, **kwargs)[source]
get_classifiers(*args, **kwargs)[source]
get_datarun(*args, **kwargs)[source]
get_dataruns(*args, **kwargs)[source]
get_dataset(*args, **kwargs)[source]
get_hyperpartition(*args, **kwargs)[source]
get_hyperpartitions(*args, **kwargs)[source]
get_maximum_y(*args, **kwargs)[source]
get_methods(*args, **kwargs)[source]
get_number_of_hyperpartition_errors(*args, **kwargs)[source]
is_datatun_gridding_done(*args, **kwargs)[source]
load_metrics(*args, **kwargs)[source]
load_model(*args, **kwargs)[source]
mark_classifier_errored(*args, **kwargs)[source]
mark_datarun_complete(*args, **kwargs)[source]
mark_datarun_running(*args, **kwargs)[source]
mark_hyperpartition_errored(*args, **kwargs)[source]
mark_hyperpartition_gridding_done(*args, **kwargs)[source]
start_classifier(*args, **kwargs)[source]
to_csv(*args, **kwargs)[source]
atm.database.try_with_session(commit=False)[source]

Decorator for instance methods on Database that need a sqlalchemy session.

This wrapping function checks if the Database has an active session yet. If not, it wraps the function call in a with DBSession(): block.