saucecat / nuance Goto Github PK
View Code? Open in Web Editor NEWVisualization ideas for data science
Visualization ideas for data science
@SauceCat Hi I was trying out your tree generation code. I copied same lines of code from your example file but i am facing this issue(above mentioned). Please see the below notebook image I have attached.
Hi
This looks amazing, however, I can't get it to run without more changes to the code. I just wanted to try this out, but issues keep coming up. I just wanted to let you know, so perhaps you or someone else can fix this.
BTW, it'd be nice to have this packaged on pypi. If I can give you a hand, let me know.
I found out that Nuance's default colormap doesn't exist (in my matplotlib distribution). So you have to set a different colormap, for example, 'viridis'.
I had the same issues as the person before (other issues) with the tree n_classes being a numpy array, not a scalar, but this can be worked around if you set for example, target_colors=['green', 'red'].
The next issues is this here:
/content/Nuance/tree/src/generate_tree.py in _extract_rules(node_id, parent, pos, tree_rules, tree_info)
165 thre = tree_model.tree_.threshold[parent]
166 if feat not in previous.keys():
--> 167 tree_rules[node_id]['features'][feat] = [-sys.maxint, sys.maxint]
168 if pos == "left":
169 origin = tree_rules[node_id]['features'][feat][1]
AttributeError: module 'sys' has no attribute 'maxint'
I am happy to give this another go with more time. Just wanted to leave a feedback.
Cheers.
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.