cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
257 stars 56 forks source link

Chore: Remove tensorflow coupling #83

Closed chrismarquez closed 2 years ago

chrismarquez commented 2 years ago

Legal Acknowledgement\ By contributing to this software project, I agree my contributions are submitted under the BSD license. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

This PR eliminates the need to have TensorFlow as a dependency when using the load_onnx_neural_network, write_onnx_model_with_bounds and load_onnx_neural_network_with_bounds functions

codecov[bot] commented 2 years ago

Codecov Report

Merging #83 (581cb4c) into main (340e73c) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   94.18%   94.18%           
=======================================
  Files          24       25    +1     
  Lines        1239     1239           
  Branches      192      192           
=======================================
  Hits         1167     1167           
  Misses         42       42           
  Partials       30       30           
Impacted Files Coverage Δ
src/omlt/io/keras/keras_reader.py 89.47% <ø> (ø)
src/omlt/io/__init__.py 100.00% <100.00%> (ø)
src/omlt/io/keras/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 340e73c...581cb4c. Read the comment docs.