iamDecode / sklearn-pmml-model

A library to parse and convert PMML models into Scikit-learn estimators.
BSD 2-Clause "Simplified" License
76 stars 15 forks source link

Automatically detect model type from PMML file #51

Closed iamDecode closed 11 months ago

iamDecode commented 11 months ago

This PR adds a way to automatically infer the type of the provided PMML file, and returns the corresponding model class. For the least possible overhead, it is still recommended to use the specific model classes (e.g., PMMLForestClassifier) classes if possible. However, this method makes it much easier to get started with the library.

Closes #14

codecov[bot] commented 11 months ago

Codecov Report

Merging #51 (a731e7b) into master (5eba881) will increase coverage by 0.04%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   99.39%   99.44%   +0.04%     
==========================================
  Files          22       24       +2     
  Lines        1162     1252      +90     
==========================================
+ Hits         1155     1245      +90     
  Misses          7        7              
Files Coverage Δ
sklearn_pmml_model/auto_detect/__init__.py 100.00% <100.00%> (ø)
sklearn_pmml_model/auto_detect/base.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more