Hello everybody, i have a problem with tree regressor,
ValueError: Input contains NaN, infinity or a value too large for dtype('float32').
my lines are:
from sklearn.tree import DecisionTreeRegressor
#Tree Decision model
tree = DecisionTreeRegressor(max_depth=1)
tree.fit(data_numerical, target)
where:
target = ames_housing[target_name]