Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

predict_label()一堆错误啊。。。 #12

Open
1980695671 opened this issue Jan 23, 2019 · 0 comments
Open

predict_label()一堆错误啊。。。 #12

1980695671 opened this issue Jan 23, 2019 · 0 comments

Comments

@1980695671
Copy link

Traceback (most recent call last):
File "test.py", line 14, in
model.predict_label(dateset)
File "/Users/yuan.jin/Desktop/gbdt_test/GBDT/gbdt/model.py", line 313, in predict_label
probs = self.predict_prob(instance)
File "/Users/yuan.jin/Desktop/gbdt_test/GBDT/gbdt/model.py", line 293, in predict_prob
f_value = self.compute_instance_f_value(instance)
File "/Users/yuan.jin/Desktop/gbdt_test/GBDT/gbdt/model.py", line 269, in compute_instance_f_value
f_value += self.learn_rate * iter.get_predict_value(instance)
File "/Users/yuan.jin/Desktop/gbdt_test/GBDT/gbdt/tree.py", line 24, in get_predict_value
elif not self.real_value_feature and instance[self.split_feature] == self.conditionValue:
TypeError: 'DataSet' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant