mindsdb / mindsdb_native

Machine Learning in one line of code
http://mindsdb.com
GNU General Public License v3.0
37 stars 28 forks source link

Merge native models and custom mode interface #401

Closed George3d6 closed 3 years ago

George3d6 commented 3 years ago

it would help a lot with the database-storage refactor if we just went ahead and merge the custom model interface and the native predictors interfaces and started differentiating between the two predictor types with an is_custom key we add to their data (both in get_models and in get_model_data.

1 or 2 functions might have some slightly more complicated signature, but nothing significant, and this encourages us to handle native vs custom differences at the interface level, which (hopefully) means custom models will start being better supported in all parts of the codebase.