Comment on page
Dataconnector
This namespace provides python functions for connecting training data for AI modeling.
__init__(info, user)
- info (dict) : Information about the training data corresponding to the object.
- user (User) : User for making the data connector corresponding to the object.
- id : The id from the 'info' parameter.
- url : DS2 API url information.
- user : The User object from the 'user' parameter.
- user_token : The user's app code as a token.
Returns self.id.
__repr__()
- str
Deletes a data connector that has corresponding id and token.
delete()
- None
Makes a new ipynb file to the designated file path and writes the needed code for data connector.
get_magic_code(training_method, value_for_predict, file_path="output.ipynb")
# possible inputs fot training_method: "image", "normal_classification", "normal_regression", "object_detection", "time_series", "time_series_regression", "time_series_classification", "recommender", "image_classification"
- training_method (str) : Training method for the data connector as a string.
- value_for_predict (str) : User for making the data connector corresponding to the object.
- file_path (str) : Designated file path for saving ipynb file.
- None
Last modified 1yr ago