Re: [scikit-learn] scikit-learn Digest, Vol 43, Issue 11

2019-10-06 Thread Stuart Reynolds
Pandas has a read_excel function that can load data from an excel spreadsheet: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html On Sun, Oct 6, 2019 at 1:57 AM Mike Smith wrote: > Can I call an MSExcel cell range in a function such as model.predict(), > instead o

Re: [scikit-learn] Can Scikit-learn decision tree (CART) have both continuous and categorical features?

2019-10-06 Thread Sebastian Raschka
You are right, changing the figure size would fix the issue (updated the notebook). In practice, I think the issue becomes choosing a good aspect ratio such that the a) general proportions of the plot look ok b) proportions of the boxes wrt the arrows look ok It's all possible for a user to do

Re: [scikit-learn] Can Scikit-learn decision tree (CART) have both continuous and categorical features?

2019-10-06 Thread Andreas Mueller
Thanks! I'll double check that issue. Generally you have to set the figure size to get good results. We should probably add some code to set the figure size automatically (if we create a figure?). On 10/6/19 10:40 AM, Sebastian Raschka wrote: Sure, I just ran an example I made with graphviz

Re: [scikit-learn] Can Scikit-learn decision tree (CART) have both continuous and categorical features?

2019-10-06 Thread Sebastian Raschka
Sure, I just ran an example I made with graphviz via plot_tree, and it looks like there's an issue with overlapping boxes if you use class (and/or feature) names. I made a reproducible example here so that you can take a look: https://github.com/rasbt/bugreport/blob/master/scikit-learn/plot_tree/

Re: [scikit-learn] Can Scikit-learn decision tree (CART) have both continuous and categorical features?

2019-10-06 Thread Andreas Mueller
On 10/4/19 11:28 PM, Sebastian Raschka wrote: The docs show a way such that you don't need to write it as png file using tree.plot_tree: https://scikit-learn.org/stable/modules/tree.html#classification I don't remember why, but I think I had problems with that in the past (I think it didn't

Re: [scikit-learn] scikit-learn Digest, Vol 43, Issue 11

2019-10-06 Thread Mike Smith
Can I call an MSExcel cell range in a function such as model.predict(), instead of typing the data in for each element? On Sat, Oct 5, 2019 at 11:58 AM wrote: > Send scikit-learn mailing list submissions to > scikit-learn@python.org > > To subscribe or unsubscribe via the World Wide Web,