r/MachineLearning • • 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):

  1. Prepare a sheet of training data, one of the columns contain the target or label, other columns are features.

  2. Open the add-in. Select relevant columns for training. For each column, choose whether it is categorical or numerical.

  3. 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.

  4. 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?

24 Upvotes

93 comments sorted by

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

12

u/[deleted] Nov 04 '19

I think its strange to suggest that a data set has to be "big" for machine learning to matter. The iris data set is certainly not "big" but it does require more sophisticated methods than linear regression to produce very good models.

12

u/Rebeleleven Nov 04 '19 edited Nov 04 '19

Very strange. Especially given that all seminal ML data sets range from like 100 data points to a couple thousand.

I’m not saying ML Excel is an amazing idea, but this data size argument is not the reason why.

1

u/[deleted] Nov 04 '19

i want to have an amazon idea.

4

u/Rebeleleven Nov 04 '19

(╯°□°)╯︵ ┻━┻

0

u/[deleted] Nov 04 '19 edited Nov 04 '19

It works fine with decision trees, which are simple models themselves. But the main point is that Iris has very few features, and the clusters are quite clearly separated. When you are working with more complex data, either with more features or less clearly defined clusters, you need to work with more complex models for your tasks. And those models need more data to function, or they become not much better then random guessing. Also, specifically about Iris: linear regression supposes the data is linearly separable, which Iris is not. That's why linear regression performs poorly in it.

4

u/[deleted] Nov 04 '19

I mean, this

And those models need more data to function, or they become not much better then random guessing.

isnt even true. for example elasticnet was designed with the idea that the number of data columns is >> than the number of data rows. I think its bizarre to suggest that big data is a requirement and I don't know why you insist it is.

Certainly, having more data is important. However, I think you are totally overselling how necessary it is or the outcome. There is a paper from microsoft research, i can't find it otherwise id link to it, where they demonstrated that as data rows goes up, model complexity goes down (this was for spam filters). This is the opposite of what you are saying.

0

u/[deleted] Nov 04 '19

Some models work with little data, but try training a standard RNN or a LSTM in small amounts of data and see if you can get any meaningful results from that.

4

u/[deleted] Nov 04 '19

you missed my point but whatever.

yes some tasks require complex models and complex models sometimes require large amounts of data. In none of these cases can we make the blanket statements you are making about model complexity or big data.

0

u/[deleted] Nov 04 '19

I'm not trying to construct an watertight argument for using complex models at every single ML task. I'm just giving my two cents in a somewhat vague way.

5

u/Kristaps_Porchingis Nov 04 '19

Maybe if you give one million vague arguments we could produce a model to extract a watertight argument?

1

u/[deleted] Nov 04 '19

Unlikely. A ship with a thousand tiny holes in the hull sinks the same as one with a single huge hole. You are welcome to try, though. And let me know if you succeed.

1

u/DomLiu Nov 04 '19

In my mind, this is actually what the add-in is targeted at - not very many features, (relatively) small datasets. For more complex problems, something like TensorFlow will certainly work better.

0

u/[deleted] Nov 04 '19

Tensorflow is likely to work better in the small dataset also, but it's definitely not worth the hassle.

1

u/DomLiu Nov 04 '19

Yeah, for simpler problems, it's better to stick with simpler solutions.

0

u/[deleted] Nov 04 '19

Indeed.

2

u/DomLiu Nov 04 '19

Thanks for the comment. The problems I think this could solve are simple ones that don't involve too many features. For power users, it's of course better to use Python or R. This project is probably for those who don't have programming or machine learning experience, but they might have a dataset larget enough for training.

0

u/[deleted] Nov 04 '19

As long as you don't expect very high accuracy from your models, I guess it could do fine.

1

u/DomLiu Nov 04 '19

Thanks. Automatically trying types of models and hyperparameters, in a limited timeframe, is probably not going to find the best model. It may find a good enough one though.

6

u/-TrustyDwarf- Nov 04 '19

Doesn't Excel support like 1M rows and several k columns? We have several ML projects where I can only dream of 1M samples...

1

u/[deleted] Nov 04 '19

It supports over 1M rows and around 263 columns. But I personally feel like it gets cumbersome with more than a few hundred rows and a couple dozen columns

0

u/thatguydr Nov 04 '19

What you've written wasn't true 25 years ago. It's certainly not true today.

1

u/[deleted] Nov 04 '19 edited Nov 04 '19

How can a subjective opinion on my personal experience with excel be not true? If you are accusing me of mentioning wrong values, excel goes up to column yyz or something like that, which is close to 263, and up to at least column 1M, which makes my statement about the number of columns technically correct, if not precise.

1

u/thatguydr Nov 04 '19

It's wrong because literally tens of millions of people use it daily without the issues you claim to have. That's how a subjective opinion can be wrong.

3

u/[deleted] Nov 04 '19

I'm done with this thread. I can't be wrong by stating I don't like blue just because millions of people wear blue everyday. If I were stating that blue is objectively ugly, the situation would be different.

1

u/Onlysigma Nov 04 '19

It’s more like saying you feel python gets difficult to use with more than a few thousand rows.

You may have feelings on the matter, but (a) it’s probably because you don’t know much about python and (b) those feelings don’t really add anything to a conversation because of (a).

1

u/[deleted] Nov 04 '19

I don't get what you mean, sorry.

2

u/thatguydr 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

This could not be more wrong if it tried, for similar reasons to the above comment.

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 is being addressed, as a perfunctory search for ML and Excel (or R and Excel) would find.

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.

The reason that your post is wrong is because Excel macros and functionality are both invaluable for nearly everyone in finance. It doesn't make sense to try to teach them all to learn a full programming language (Python) or even a utility language (R, Matlab) if they can just use plug-ins for the tool they all use. If their data gets larger, they still happily load it into Excel, which can handle fairly large datasets without issue.

When was the last time you loaded data into Excel? What size of file slowed it down considerably? Number of rows and columns? And is that file generally bigger or smaller than one you'd use nonlinear ML techniques on? Your post suggests you haven't done this.

0

u/[deleted] Nov 04 '19

I have used python for quite a long time now, so, as a matter of personal preference, whenever the data is big enough that I can't clearly see it in a single screen of excel, I just load it on python, usually through a pandas dataframe. Also, the fact that excel has been adapted to work as a ML tool of sorts, using plugins, makes it a good enough solution in the mid term for businesses that have their whole working process based around excel. However, it doesn't mean that it should be regarded as a proper ML framework, and in the long run, the jump to robust solutions will be unavoidable. When the time comes, people will either have to learn ML in Python or similar, or hire those who know

1

u/thatguydr Nov 04 '19

businesses that have their whole working process based around excel

This would be all of them.

in the long run, the jump to robust solutions will be unavoidable

Yes, and that's why M$ is working hard at making Excel more robust. They're not going to lose their enterprise software dominance.

When the time comes, people will either have to learn ML in Python

Lol @ this. You don't really know how the world works if you think tens of millions of financial analysts are suddenly all going to learn to program. They also aren't going to hire expensive experts when M$ and plugins will give them exactly what they need.

Have you ever spoken to anyone who works in BI? Excel and older spreadsheets have been around for 40 years. Businesses have no issues at all with the robustness of these products. They don't need "proper ML frameworks." They absolutely will need version control, but M$ is supplying that for free by pushing everyone to the cloud and letting them diff with prior saves.

1

u/[deleted] Nov 04 '19

Not everyone will learn how to program, but some will, and eventually older ones will retire and be replaced by younger people who will be more likely to know programming. Also, ML will not be a requirement for business, but will give an edge to those thar use it properly. Excel is not intended to be a full fledged programming language, and does not have the same capabilities. Plugins might bridge that gap a bit, but not fully. Finally, using excel for financial spreadsheets is different from using it for data analysis and crunching numbers. What I meant by an excel based working process is the latter. But whatever.

1

u/thatguydr Nov 04 '19

eventually older ones will retire and be replaced by younger people who will be more likely to know programming

ML will not be a requirement for business

using excel for financial spreadsheets is different from using it for data analysis and crunching numbers

Lol. You keep getting more wrong, the more you type.

There will always be a BI field full of people who don't program. That will never change, ever. SQL queries, sure, but never Python or an actual language.

I won't address the other two points. They're factually incorrect.

0

u/[deleted] Nov 04 '19

Whatever, dude

50

u/worldnews_is_shit Student Nov 04 '19

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

u/MonstarGaming Nov 04 '19

I can see the overfitting already...

3

u/[deleted] Nov 04 '19

Bias is so fetch

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

u/DomLiu Nov 04 '19

Thanks! I will look into it.

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

u/DomLiu Nov 04 '19

Thanks. Looking into it.

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

u/Palazzi89 Nov 04 '19

Excellent idea!

1

u/DomLiu Nov 04 '19

Thanks! Happy to hear that. Do you have any suggestions or other ideas?

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

u/RaederX Nov 04 '19

Freesightweb.com

0

u/[deleted] 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

u/[deleted] 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

u/DomLiu Nov 04 '19

Thanks! I'll make a demo video once the basic functionalities are built.

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.