Skip to content

Commit

Permalink
Don't raise error if model has already been fit
Browse files Browse the repository at this point in the history
Related to issue lyst#3
  • Loading branch information
RitwikGupta committed Jul 15, 2015
1 parent 57d51ed commit ede2c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpforest/rpforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def fit(self, X, normalise=True):
"""

if self._is_constructed():
raise Exception('Tree has already been created.')
print "Model has already been previously fit, continuing..."

if X.shape[0] < 1 or X.shape[1] < 1:
raise Exception('You must supply a valid 2D array.')
Expand Down

0 comments on commit ede2c1c

Please sign in to comment.