Skip to content

Commit

Permalink
Adapt curve fit tests to table locking
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Oct 5, 2021
1 parent dd213c1 commit f134c10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/regression/tests/test_curvefit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from Orange.preprocess.impute import Random
from Orange.regression import CurveFitLearner
from Orange.regression.curvefit import _create_lambda

import Orange.tests

class TestCreateLambda(unittest.TestCase):
def test_create_lambda_simple(self):
Expand Down Expand Up @@ -170,7 +170,8 @@ def test_inadequate_data(self):

def test_missing_values(self):
data = self.data.copy()
data.X[0, 12] = np.nan
with data.unlocked():
data.X[0, 12] = np.nan
learner = CurveFitLearner(func, [], ["CRIM"])
model = learner(data)
pred = model(data)
Expand Down

0 comments on commit f134c10

Please sign in to comment.