Questions tagged [treemodel]
109 questions
3
votes
2 answers
Does adding a feature certainly making the model better?
I have trained a GBDT model for predicting CTR, originally using 40 features. Then I added some features, but the AUC is lower than the original one.
How could that happen?
How do I determine which feature is good for the model?

SaiLiu
- 49
- 5
3
votes
1 answer
Method valueForPathChanged in TreeModel interface (Swing)
I am implementing TreeModel interface and have implemented all methods except for the valueForPathChanged.
In my case, the values are not going to be programatically changed.
Why TreeModel interface contains this method? Is it used by JTree in any…

alandarev
- 8,349
- 2
- 34
- 43
3
votes
1 answer
merging two trees using treemodel.js
example:
http://jsfiddle.net/yeehawjared/bawv0790/
I'm building an app where a webpage opens, loading JSON of a large data tree structure. TreeModel.js parses this great and all is well.
As time continues, the browser receives updates in the form…

Jared
- 607
- 1
- 6
- 28
3
votes
1 answer
Why does JTree handle events from DefaultTreeModel but not TreeModel?
I've noticed that the jTree.treeModelHandler called & defined within jTree, implement blank methods for both treeNodesChanged & treeNodesInserted events. DefaultTreeModel fires a treeNodesInserted event & jTree updates itself. However, when I fire…

Simon Page
- 69
- 3
3
votes
3 answers
GenericTreeModel with PyGObject Introspection Gtk+ 3?
I'm trying to write my own Gtk+3-TreeModel based on GenericTreeModel in Python3, but I this error:
AttributeError: 'gi.repository.Gtk' object has no attribute 'GenericTreeModel'
Has GenericTreeModel been renamed?
Thanks in advance.

Jan Holthuis
- 149
- 10
2
votes
2 answers
Adding a Swing tree selection listener with custom tree model
I am studing java now, and one of my apps is simple Swing file hierarchy viewer, that uses JTree widget.My question is how can i add a Jtree mouse selection event listener(for example logging a node text value to console) in case when i implemented…

teddypickerfromul
- 75
- 2
- 7
2
votes
3 answers
Java Swing Application with a JTree - MVC Design: Where to position a TreeModel object architecturally?
Please excuse the verbosity of this question, as in writing it I am attempting to think through my design problem!
I have inherited a Swing application which requires re-architecting into an RMI application. The customer requires the Swing GUI to…

8bitjunkie
- 12,793
- 9
- 57
- 70
2
votes
1 answer
Error in Shap plots (tree explainer) when using sklearn pipeline for Classification task
I am using a sklearn pipeline for a classification task as below:
from sklearn.datasets import fetch_openml
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.impute import…

Mohammad
- 775
- 1
- 14
- 37
2
votes
1 answer
How to output TreeModel Js model as JSON
So I'm triyng to update some ids from a categories tree using TreeModelJS.
after editing I would like to dump the tree to a file in JSON format.
but when outputing other keys from TreeModel gets outputed as well.
How could I output edited tree as…

Luis David
- 754
- 8
- 14
2
votes
1 answer
How to make JTree to only display strings and not a file structure
I'm currently working on a client-server project where the client sends a request to the server and the server runs a database statement based on the information from the client. As there's no static length for the output I add all the data to a…

Samaranth
- 385
- 3
- 16
2
votes
2 answers
Updating/refreshing a TreeModel
I have a series of threads retrieving RSS feeds at regular intervals and want to refresh a custom JTree using PropertyChangeSupport. However it uses a custom class implementing TreeModel and I'm not sure how to trigger an automatic change. Is this…

James P.
- 19,313
- 27
- 97
- 155
2
votes
1 answer
Gtk.TreeModel subclassing
being french I am bad in english, sorry.
I upgrade an application running with python and pygtk with python and pyobject for Gtk3. It is difficult to find complete documentation on pyGobject, and I want to map a treemodel with sqlalchemy.
I'm stuck…

Rolland T.
- 23
- 3
2
votes
1 answer
How to fill Gtk::TreeModelColumn with a large dataset without locking up the application
I need to fill in a large (maybe not so much - several thousands of entries) dataset to a Gtk::TreeModelColumn. How do I do that without locking up the application. Is it safe to put the processing into separate thread? What parts of the application…
user283145
2
votes
2 answers
Creating a complex tree model in Qt
I'm writing an IRC Client (yes another one). Long story short. I'm writing a Server dialogue
that keeps a list of this:
Identity
Networks
Channels
Addresses
I have 3 different list views that will be for the Networks, Channels…

Zeke
- 1,150
- 1
- 7
- 5
2
votes
1 answer
R PMML class distribution
While trying to export an R classifier to PMML, using the pmml package, I noticed that the class distribution for a node in the tree is not exported.
PMML supports this with the ScoreDistribution element: http://www.dmg.org/v1-1/treemodel.html
Is…

halfwarp
- 1,780
- 5
- 24
- 41