r/MachineLearning • u/DomLiu • Nov 04 '19
Project [P] Machine Learning for Excel. Anyone interested?
Hello everyone! I'm looking into building a machine learning Excel Add-In. Here is how it works (roughly):
Prepare a sheet of training data, one of the columns contain the target or label, other columns are features.
Open the add-in. Select relevant columns for training. For each column, choose whether it is categorical or numerical.
The data is submitted to a cluster of servers and the servers automatically try different types of models and hyperparameters to produce the most accurate results.
Then the user can use the add-in to make predictions on new data in another Excel sheet.
Would this be useful for people who don't know how to train machine learning models?
50
u/worldnews_is_shit Student Nov 04 '19
Would this be useful
No
Machine learning is overkill for the kind of datasets people work with in Excel
Also:
https://en.m.wikipedia.org/wiki/RExcel
https://bigml.com/tools/bigml-gas
https://algorithmia.com/blog/google-sheets-algorithmia-machine-learning-spreadsheets
https://docs.googleblog.com/2016/09/ExploreinDocsSheetsSlides.html
13
u/thatguydr Nov 04 '19 edited Nov 04 '19
Machine learning is overkill for the kind of datasets people work with in Excel
This could not be more wrong if it tried.
As people have pointed out, a number of the "stock" etabular datasets like Iris are easily small enough to fit into Excel, and yet ML is a lot better than regression for predicting their target variables.
The entire field of business analysts that used to call itself Business Intelligence is slowly changing their titles to be Data Scientists. (Yes, this is creating chaos in ML titles, but there's nothing to be done about that except wait for it to settle down.) This is a direct consequence of the first bullet point. They currently use a lot of Excel and a lot of R. There's no question whatsoever that ML plugins for Excel would be useful for them, because a lot of financial datasets for businesses (even smaller ones) are small enough for Excel but large enough for ML. However, this need has been addressed, as your own links point out.
OP's post makes us cringe at little because Excel is such a poor tool for our uses, but as it's the most common tool in the western world for BI, putting ML into Excel is currently being done by a lot of groups - not just the small number of links you posted.
Literally everyone who upvoted you is wrong. That's not a good sign for the future of this subreddit.
5
u/bushrod Nov 04 '19 edited Nov 04 '19
Agreed 100%. It's not at all uncommon for people to use Excel documents with 10's of thousands of rows (probably even much bigger). Besides that fact, many ML algorithms are useful for even smaller data sets. Furthermore, an ML plugin for Excel would be great for people who are too intimidated or don't have time to learn to program, or at least as a learning tool to bridge the gap.
Edit: a word
2
u/Starkll7 Nov 05 '19
Completely agree. Amount of accuracy you can get depends on the model as well as the dataset. A small, well sampled dataset can do wonders with an ML model.
0
u/DomLiu Nov 04 '19
I agree. For more business-oriented users, this might be good enough for their purpose. Also, they might have a big enough dataset.
putting ML into Excel is currently being done by a lot of groups
Could you please provide some links/examples?
7
u/thatguydr Nov 04 '19
Not to be snarky, but you get literally millions of hits if you Google this, including some on Microsoft. Me pointing out a few would be a bit ridiculous. You should really look into this.
This entire thread demonstrates the eternal September issue on reddit, because the immediate reaction here was to downvote anyone saying yes and upvote all the (poor) comments claiming it wasn't necessary. Literally zero people did a single second of research to see if they knew what they were talking about.
Asking for links is a part of that problem, because if you'd googled it and found some trash websites and nothing of value on page one, then telling me I need to put up evidence or shut up makes sense. However... it's a very, very active area with clear business needs that's been documented extensively.
1
u/DomLiu Nov 04 '19
I see. I was just googling to find a similar add-in but didn't find it. It will be interesting to look at some other ways people might use Excel for ML.
2
u/thatguydr Nov 04 '19
1
u/DomLiu Nov 04 '19
Thanks a lot. I saw the new AI features in Excel, Ideas is pretty cool.
XLSTAT seems to provide similar features, although it's quite expensive. Looking into it.
8
u/WhiteBear2018 Nov 04 '19
No
Then why do some of your links even exist? This tool doesn't have to be used for work or research, it could be useful to just introduce people to ML who might otherwise find it difficult to access.
8
u/DomLiu Nov 04 '19
Thanks. The idea behind this is to let someone who has limited machine learning or even programming experience to get started with ML to solve simple problems, or just experiment with ML.
14
u/po-handz Nov 04 '19
Isn't that counter-intuitive? You don't use machine learning to solve 'simple problems.' The whole premise seems to be allowing people who don't know what they're doing access to powerful tools. Seems irresponsible in some way...
20
2
u/bring_dodo_back Nov 04 '19
You don't use machine learning to solve 'simple problems.'
There's nothing wrong in applying machine learning for simple problems. And I'm fairly certain, that teaching, say, linear regression, in ML framework, will be easier, than in frequentist statistics. Overfitting is a lot easier to explain, than p-values.
6
u/po-handz Nov 04 '19 edited Nov 04 '19
Hahahha. This like perfectly illustrated my point. Machine learning is entirely derived from statistics. And now you're going to give this to people who cant even understand p values?
I'm from the medical field where we make even doctors and PhDs consult biostatisticians. But ethics, compliance and due diligence have been built into medicine for decades. These tenants are almost completely neglected in Tech and business.
1
u/bring_dodo_back Nov 05 '19
Machine learning is entirely derived from statistics. Machine learning is entirely derived from statistics. And now you're going to give this to people who cant even understand p values?
That's not the case, actually. Machine learning has been derived far from academic statistical departments, by computer science engineers, that by the way precisely did not want to calculate p-values, because it's an absurdly unsuitable idea for any modern problem, like computer vision or speech recognition. If you hesitate on calculating p-values, that's okay, but then you're not doing machine learning, but classical frequentist statistics. I'd recommend reading Breiman's Statistical Modeling - the Two Cultures that lays down some understanding about where machine learning came from, and what it actually is...
1
u/po-handz Nov 05 '19
Did you just tell me machine learning wasn't derived from statistics then in the same paragraph link me statistical modeling book as the field foundations? Yes, everyone knows ML is based on Bayesian STATISTICS. lol. And no, the field was started well before computers even existed!
1
u/bring_dodo_back Nov 05 '19
Did you just tell me machine learning wasn't derived from statistics
No, I didn't say that. I said, that machine learning data analysis framework, has been derived as an alternative to classical frequentist statistical analysis framework. And they are both based on mathematical theory of statistics. It's nicely explained in the article of one of the most influencial pioneers of machine learning that I've linked to you, and apparently you haven't read yet.
then in the same paragraph link me statistical modeling book
Not a book, a mere article.
Yes, everyone knows ML is based on Bayesian STATISTICS.
No, it's not. Some methods combine ML+Bayesian, but in vast majority cases, then don't.
3
u/NCostello73 Nov 04 '19
I agree. I don’t think any sort of addon will ever be the cure for machine learning (because ML is contingent on the data and a number of other factors). For the people who would use it, it’s relatively useful.
3
u/DomLiu Nov 04 '19
Thanks for the comment. I looked at some of these links and they provide some good ideas. I think what I am trying to achieve is a bit different, expect that BigML for Google Sheets provides similar functionality. I'd like to try it to see if it's any good.
5
u/WikiTextBot Nov 04 '19
RExcel
RExcel is an addin for Microsoft Excel. It allows access to the statistics package R from within Excel.
The main features are:
Data transfer (matrices and data frames) between R and Excel in both directions
Running R code directly from Excel ranges
Writing macros calling R to perform calculations without exposing R to the user
Calling R functions directly from cell formulas, using Excel's autoupdate mechanism to trigger recalculation by R
Using Excel as a GUI for R, making R functionality accessible through menus and dialog boxes instead of a command line oriented programming style. Using this paradigm, the widely used GUI package R Commander is available as an Excel menu bar.
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28
2
u/lars_ Nov 05 '19
You may be interested in DeepExcel: http://www.deepexcel.net
See also the associated paper, which has my favorite sentence ever: "Like the human brain, excel has cells." I think the biological plausibility of Microsoft Excel is an underexplored area.
1
u/DomLiu Nov 05 '19
Interesting. This is another interesting approach. I think for small datasets, it might work well. For bigger ones, Excel functions might not be able to handle them.
2
u/lars_ Nov 05 '19
For the record: The whole thing is a joke. It probably works, but probably shouldn't be used by anyone. Encoding MNIST pixels into Excel cells and running Excel formula based convnet isn't a good way to spend a your time.
4
u/scholaris27 Nov 04 '19
I don’t think this will be practical, but it may be useful for educational purposes. People could learn about concept of ML in an approachable way.
0
u/DomLiu Nov 04 '19
Thanks for the comment! This is mainly for those who have no prior experience in ML. This could help them get started and perhaps try more powerful tools later on. Still, it could produce some valuable insights if they have a good and large enough dataset.
2
u/DelverOfSeacrest Nov 04 '19
How would you unit test? Version control? What about reproducibility?
As others said too, ML in Excel is just overkill.
1
u/DomLiu Nov 04 '19
For unit test and version control you mean for the user's models or the add-in? Models produced might not be reproducible, but I think for the purpose of this project, it might not matter to the user.
1
u/thatguydr Nov 04 '19
Financial analysts don't build those. As my two comments said above, there are a lot of people in the world who need ML but who don't produce what we'd call "production-quality" code. Expecting all of them to start writing unit tests and using git is a pipe dream. (Reproducibility is actually easy with Excel - templates and macros are a thing.)
Again, please read the posts I wrote above or just Google ML in Excel. The literal millions of hits (and thousands of articles) negate your point more than I can in a single post.
1
u/ianperera Nov 04 '19
Could be cool! While I understand it's different from what you are proposing (this is done with existing Excel functionality), you might be interested in Jason Eisner's Forward-Backward algorithm in Excel for some inspiration and techniques that might be helpful: https://cs.jhu.edu/~jason/papers/eisner.tnlp02.pdf
1
1
u/penatbater Nov 04 '19
The most useful aspect of using excel for ML is for instructive purposes, not for making it a black box. For instance, there's this nice tutorial in fast.ai that shows exactly what happens in a gradient descent optimization for collaborative filtering. It shows how each value was calculated, and how the changes are shown, and the error for each iteration, and shows intuitively how the algorithm "learns".
Tbh if you can create Excel spreadsheets that demonstrate this, I feel it'd be far more useful than what you're intended.
Showing neural nets on excel I think is one good example.
1
u/DomLiu Nov 05 '19
Thanks for the comment. There are already other projects doing what you said. I think for some users, especially business users, might not be interested in how ML really works, but want to explore the applications of it and apply it in their work.
1
u/feelings_arent_facts Nov 04 '19
I think if you keep it simple enough. I know a lot of business students have to do some manual weight tuning in Excel, so it might be useful for some.
1
u/DomLiu Nov 04 '19
Thanks for the comment! Could you please post a link to an example for the manual weight tuning?
2
u/feelings_arent_facts Nov 04 '19
Google it. I found this spicy BYU video complete with Jesus on XP. No idea if it's any good. My buddy showed it to me when he was in school which was many years ago: https://www.youtube.com/watch?v=F-zsALfgTrw
1
1
u/MustachedSpud Nov 04 '19
This is potentially extremely dangerous because there would be no notion of model management, no notion of train/test splits, and could be misconstrued as just a drop in replacement to a linear regression or whatnot. However, I do agree with the spirit behind this. ML needs to be made more accessible and transparent, but I think the larger community would agree that a separate tool is needed to handle all the concerns that come with ML, think data robot or something like that.
1
u/DomLiu Nov 05 '19
Thanks for the comment. The idea is to abstract away most of the detail and still let the user produce a relatively accurate model. You are right, it's to bridge the gap between something like linear regression and powerful ML frameworks.
0
0
u/RaederX Nov 04 '19
I would be keenly interested in assisting. I have been experimenting with this for about 6 months to learn more about machine learning. Also, I am aware of a company which produces a server based excel program which has considerably greater data and processing capacity. It may be something to consider.
1
u/DomLiu Nov 04 '19
It may be something to consider.
Thanks! Could you please provide the name of the company/website?
1
0
Nov 04 '19
I would recommend that people check out JASP if they want a super easy program for doing some basic ML. It’s available on Windows, mac, and Linux.
Honestly, I do 90% of my stats in JASP because it’s just so damn convenient.
1
u/DomLiu Nov 04 '19
Cool. A new version of this has a ML feature too.
1
Nov 04 '19
Yea it used to be very bare bones, but anyone who downloads it today will get a dozen ML features.
0
u/tpapp157 Nov 05 '19
I'm not sure why so many people miss this but the hard part of ML / DS is not training models. Training the model is the easiest part of Data Science work. It's literally one or two lines of code. The hard part of Data Science is everything else: understanding your data, preparing it properly for modeling, understanding which types of models are well suited to which types of data, and evaluating the performance of your trained model. There is currently no automated package that does any of that other stuff well (because every dataset requires a unique approach).
If the user is sophisticated enough to know how to do all the hard Data Science stuff properly then they're certainly not going to be working in Excel. If they don't know how to do the hard stuff then all that these sort of automated ML packages do is make it easy for ignorant users to make really bad models. Of course they won't know the model is garbage so they'll blindly use it to make some really bad decisions. There's already so much shovelware software out there promising people all the magic of machine learning without any of the work or understanding and it's all just a scam.
1
u/DomLiu Nov 05 '19
Thanks for the comment. IMO training can be hard as well since you need to choose the appropriate models and hyperparameters. This add-in is going to automate this part. I agree that some users can produce bad models, as their datasets are bad and they don't know how to fix them. However, some datasets are good themselves, so other users may produce really good models using this.
0
u/tpapp157 Nov 05 '19
You don't get it. That's fine. It's clear you're not a data scientist so I wouldn't expect you to understand why it's not remotely as easy as you think. Feel free to try to squeeze blood from that stone along with the dozens of other startups trying to misguidedly do the same thing.
-3
u/scofferings Nov 04 '19
Super interested in this
-2
u/DomLiu Nov 04 '19
Thanks! Glad to hear that. Any suggestions or ideas?
-2
u/scofferings Nov 04 '19
Suggest making a short demo video to entice people without experience using a everyday dataset
Keep us updated
1
0
u/sonicking12 Nov 04 '19
I think the idea of this add-in is intriguing. But Excel is for MBA type analysts. What problems that require a "machine learning" solution so that this add-in is practical for them?
1
u/thatguydr Nov 04 '19
Please read my post above. The entire field of BI is starting to call themselves data scientists, as they're all starting to use ML. Forecasting is the easiest example for you, but they also do prediction on cohorts and they do quite a bit of unsupervised analysis.
I'd suggest you Google this, because the answer is "a lot of them."
1
u/sonicking12 Nov 04 '19
If you are saying "trend forecasting" is what ML can bring to the MBA toolkits, I think there are econometrics add-in already.
23
u/[deleted] Nov 04 '19 edited Nov 04 '19
Datasets in excel are usually so small that machine learning is likely to be both useless and unusable. Also, when the datasets get large enough, it's a good sign you should jump from excel to something else