Skip to content

Commit

Permalink
Update test_models.py
Browse files Browse the repository at this point in the history
bug correction when trying to test manifold model in test_models.py
  • Loading branch information
afraniomelo committed Jan 8, 2025
1 parent 3ab2ab1 commit 7391c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def test_models_with_df_inputs():
for attr in bibmon.__all__:
a = getattr(bibmon,attr)
if isinstance(a, type):
if a.__base__ == bibmon._generic_model.GenericModel:
if a.__base__ == bibmon._generic_model.GenericModel:
if a == bibmon.sklearnManifold:
continue
if a == bibmon.sklearnRegressor:
from sklearn.linear_model import LinearRegression
m = a(LinearRegression())
Expand Down Expand Up @@ -148,6 +150,8 @@ def test_models_with_np_array_inputs():
a = getattr(bibmon,attr)
if isinstance(a, type):
if a.__base__ == bibmon._generic_model.GenericModel:
if a == bibmon.sklearnManifold:
continue
if a == bibmon.sklearnRegressor:
from sklearn.linear_model import LinearRegression
m = a(LinearRegression())
Expand Down

0 comments on commit 7391c5c

Please sign in to comment.