Adds table ml_model and entity Ml::Model
A Ml::Model has: - `name`, which will be used to reference Packages::Package by package_name (follow up: a table packages_ml_model_metadata will be added to add an association for a package of type ml_model to a model). `name` must be a valid ml_model package_name. Name is unique per project and acts as an iid of sorts. - `project`, project which the model belongs to - `default_experiment`, an Ml::Experiment with the same name as the model. When creating the model, and an experiment with the same name exists, that is set as the default_experiment. Otherwise a new experiment is created. An experiment that is the default experiment cannot be destroyed. Changelog: added
显示
- app/models/ml/experiment.rb 12 个添加, 0 个删除app/models/ml/experiment.rb
- app/models/ml/model.rb 24 个添加, 0 个删除app/models/ml/model.rb
- db/docs/ml_models.yml 10 个添加, 0 个删除db/docs/ml_models.yml
- db/migrate/20230705092150_create_ml_models.rb 19 个添加, 0 个删除db/migrate/20230705092150_create_ml_models.rb
- db/migrate/20230706130217_add_column_model_id_to_ml_experiments.rb 14 个添加, 0 个删除...e/20230706130217_add_column_model_id_to_ml_experiments.rb
- db/schema_migrations/20230705092150 1 个添加, 0 个删除db/schema_migrations/20230705092150
- db/schema_migrations/20230706130217 1 个添加, 0 个删除db/schema_migrations/20230706130217
- db/structure.sql 36 个添加, 0 个删除db/structure.sql
- spec/factories/ml/models.rb 10 个添加, 0 个删除spec/factories/ml/models.rb
- spec/models/ml/experiment_spec.rb 15 个添加, 0 个删除spec/models/ml/experiment_spec.rb
- spec/models/ml/model_spec.rb 61 个添加, 0 个删除spec/models/ml/model_spec.rb
加载中
想要评论请 注册 或 登录