pipert.contrib.save_predictions¶
Module Contents¶
Classes¶
Helper class that provides a standard way to create an ABC using |
-
class
pipert.contrib.save_predictions.OutputLogger(endpoint, in_key, db_conf, redis_url)[source]¶ Bases:
pipert.core.BaseComponent
-
class
pipert.contrib.save_predictions.MarsDBHandler(db_conf, logger)[source]¶ Bases:
pipert.contrib.database.PSQLDBHandler-
define_tables(self)[source]¶ This method defines the structure of the tables that the handler should work with, as well as binds the pythonic Classes to the correct table in db within ‘self.tables’.
THIS IS THE ONLY PLACE THAT SHOULD REQUIRE CHANGES WHEN ADDING TABLES OR CHANGING TO ANOTHER DATABASE
-
-
class
pipert.contrib.save_predictions.PredsToDatabase(in_queue, db_conf, *args, **kwargs)[source]¶ Bases:
pipert.core.RoutineHelper class that provides a standard way to create an ABC using inheritance.