|
DayF core
1.2.1.2
DayF (Decision at your Fingertips) is an AutoML freeware development framework that let developers works with Machine Learning models without any idea of AI, simply taking a csv dataset and the objective column
|
Class to manage trasient information between all persistence options and models on an unified way. More...


Public Member Functions | |
| def | __init__ (self, e_c) |
| Class Constructor. More... | |
| def | store_file (self, storage_json, filename) |
| Method used to store a file on one persistence system ['localfs', ' hdfs'] using mmap structure to manage multi-persistence features. More... | |
| def | remove_file (self, load_path) |
| Method used to remove a file on one persistence system ['localfs',' hdfs']. More... | |
| def | store_json (self, storage_json, ar_json, other=None) |
| Method used to store a json on all persistence system ['localfs', ' hdfs', ' mongoDB'] oriented to store full Analysis_results json but useful on whole json. More... | |
| def | recover_experiment_mongoDB (self, client=None) |
| Method used to recover an experiment as [ar_metadata] oriented to store full Analysis_results json but useful on whole json. More... | |
| def | mkdir (self, type, path, grants) |
| Method used to check and make directory os similar path structures on all persistence system ['localfs', ' hdfs', ' mongoDB'] over agnostic way. More... | |
| def | get_ar_from_engine (self, path) |
| Method base to get an ArMetadata Structure from file. More... | |
Class to manage trasient information between all persistence options and models on an unified way.
Definition at line 38 of file persistencehandler.py.
| def gdayf.persistence.persistencehandler.PersistenceHandler.__init__ | ( | self, | |
| e_c | |||
| ) |
Class Constructor.
| e_c | context pointer |
Definition at line 41 of file persistencehandler.py.
| def gdayf.persistence.persistencehandler.PersistenceHandler.get_ar_from_engine | ( | self, | |
| path | |||
| ) |
Method base to get an ArMetadata Structure from file.
| self | object pointer |
| path | FilePath for localfs or hdfs and /user_id/workflow_id/analysis_id/model_id for MongoDB |
Definition at line 510 of file persistencehandler.py.
| def gdayf.persistence.persistencehandler.PersistenceHandler.mkdir | ( | self, | |
| type, | |||
| path, | |||
| grants | |||
| ) |
Method used to check and make directory os similar path structures on all persistence system ['localfs', ' hdfs', ' mongoDB'] over agnostic way.
| self | object pointer |
| type | ['localfs', ' hdfs', ' mongoDB'] |
| path | directory or persistence structure to be created |
| grants | on a 0o#### format (octalpython format) |
Definition at line 440 of file persistencehandler.py.

| def gdayf.persistence.persistencehandler.PersistenceHandler.recover_experiment_mongoDB | ( | self, | |
client = None |
|||
| ) |
Method used to recover an experiment as [ar_metadata] oriented to store full Analysis_results json but useful on whole json.
| self | object pointer |
| client | Cliente MongoClient() |
Definition at line 405 of file persistencehandler.py.
| def gdayf.persistence.persistencehandler.PersistenceHandler.remove_file | ( | self, | |
| load_path | |||
| ) |
Method used to remove a file on one persistence system ['localfs',' hdfs'].
| self | object pointer |
| storage_json | (list of storagemetadata objects or OrderedDict() compatible objects) |
| ar_metadata | model_structure |
Definition at line 150 of file persistencehandler.py.

| def gdayf.persistence.persistencehandler.PersistenceHandler.store_file | ( | self, | |
| storage_json, | |||
| filename | |||
| ) |
Method used to store a file on one persistence system ['localfs', ' hdfs'] using mmap structure to manage multi-persistence features.
| self | object pointer |
| storage_json | (list of storagemetadata objects or OrderedDict() compatible objects) |
| filename | file full path string |
Definition at line 52 of file persistencehandler.py.

| def gdayf.persistence.persistencehandler.PersistenceHandler.store_json | ( | self, | |
| storage_json, | |||
| ar_json, | |||
other = None |
|||
| ) |
Method used to store a json on all persistence system ['localfs', ' hdfs', ' mongoDB'] oriented to store full Analysis_results json but useful on whole json.
| self | object pointer |
| storage_json | (list of storagemetadata objects or OrderedDict() compatible objects) |
| ar_json | file ArMetadata Class or OrderedDict() compatible object |
| other | file OrderedDict() compatible object to be stored |
assert isinstance(storage_json, StorageMetadata)
Definition at line 231 of file persistencehandler.py.

1.8.13