Esempio n. 1
0
    def edit(self, mt: ModelTraining) -> ModelTraining:
        """
        Edit Model Training

        :param mt: Model Training
        :return Message from API server
        """
        return ModelTraining.from_dict(
            self.query(MODEL_TRAINING_URL, action='PUT', payload=mt.to_dict()))
Esempio n. 2
0
    async def create(self, mt: ModelTraining) -> ModelTraining:
        """
        Create Model Training

        :param mt: Model Training
        :return Message from API server
        """
        return ModelTraining.from_dict(await self.query(MODEL_TRAINING_URL,
                                                        action='POST',
                                                        payload=mt.to_dict()))