closest-git / quantumforest Goto Github PK
View Code? Open in Web Editor NEWFast Differentiable Forest lib with the advantages of both decision trees and neural networks
Fast Differentiable Forest lib with the advantages of both decision trees and neural networks
AttributeError Traceback (most recent call last)
in
----> 1 learner.predict(ze.values)
/kaggle/input/quantumforest1/python-package/quantum_forest/QForest_Net.py in predict(self, X_, pred_leaf, pred_contrib, raw_score, num_iteration, flag)
426 The predicted values.
427 """
--> 428 self.profile.Snapshot("PRED_0")
429 # print("====== LiteMORT_predict X_={} ......".format(X_.shape))
430 Y_ = self.predict_raw(X_,pred_leaf, pred_contrib,raw_score,flag=flag)
AttributeError: 'QuantumForest' object has no attribute 'profile'
Looks like an interesting project, how about packaging this up for easy install via pip?
or failing that some installation instructions on the README
I was trying to run QuantumForest over my own dataset. I defined my data using the following code:
data = quantum_forest.TabularDataset(dataset = "MYDATA",
X_train = X_train,
y_train = y_train,
X_valid = X_val,
y_valid = y_val,
X_test = X_test,
y_test = y_test,
random_state=1337,
quantile_transform=True,
quantile_noise=1e-3)
Everything went fine without any error. But when I tried to run the following code it generates the given error.
learner = quantum_forest.QuantumForest(config,
data,
feat_info=None,
visual=visual)
Here is the error log:
ValueError Traceback (most recent call last)
<ipython-input-22-2ac6f6f82a68> in <module>()
1 learner = quantum_forest.QuantumForest(config,
----> 2 data)
3 frames
/content/QuantumForest/python-package/quantum_forest/DifferentiableTree.py in __init__(self, in_features, num_trees, config, flatten_output, feat_info, initialize_response_, initialize_selection_logits_, threshold_init_beta, threshold_init_cutoff)
234 print("!!! Empty attention_alg.Please try \"--attention=eca_response\" !!!\n")
235 else:
--> 236 raise ValueError( f'INVALID self.config.attention_alg = {self.config.attention_alg}' )
237
238
ValueError: INVALID self.config.attention_alg = eca_reponse
It's strange that the best accuracy is smallest number.
something wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.