please dont rip this site

Machine Learning Methods for Big Data

A major cause of the advances in machine learning are related to big data: Very large datasets.

If you see high variance in the learning curve  (cost on training set slowly increases, cost on validation set slowly decreases) as the number of data points is small but increasing, then more data is one of the better ways to improve the system. In that case, optimizing for big data can be worth the effort. If you don't see continued improvements as the number of data points is increased, then larger datasets are, obviously, not worth the effort.

Stochastic Gradient Descent

When the number of data sets is large, computing the derivative term for a standard (aka "Batch") gradient descent can be expensive because we must sum the slopes for all the data points to find the direction we want to move. If we instead take steps based on only one training example at a time, modifying the parameters O for only that one data point, then repeat that process for each data point, we can get the same effect, but without waiting to update parameters after scanning ALL the data points. This basically makes the system converge faster.

For this to work, we must ensure the data is in random order, so an initial step, were we randomize the data, is necessary. Each change in the parameters, after each data point, may not take us in a good direction, but the overall average effect will be the same, as long as the data doesn't "lead us astray" for more than a few points. Randomizing the data order helps to prevent that. Our "walk" toward the minimum cost will probably be more jagged and wandering, but that can actually help avoid local minimums.

To ensure the system is converging on a minimum, we can compute the cost each time we update the parameters, after each data point. Then we can average those costs, and plot them every so many iterations. The result may be noisy, but a general trend should be obvious.

Because individual data points can send us in the wrong direction, it can be difficult to find the end of the "walk" towards the minimum. At or near minimum, the system can still wander around and not really settle on a final best value. In some cases, it may help to slowly decrease your steps size (alpha), or just stop after a certain number of steps.

Mini-Batch Gradient Descent

Instead of updating the parameters for each data point as in Stochastic descent, or only after all data points as with the standard Batch descent, we can use some subset of the data points, hoping that they are representative of the complete data set. Given a set size, b, we compute the average slope of the cost function for this subset of b data points, then update the parameters accordingly, and then repeat using the next b data points.

This method also lends itself to parallel processing. It's cost is higher than Stochastic and lower than Batch.

"Online" Learning for Continuous Data Streams

When the input data continues to flow in, with ever more data points, we can apply each new data point to the learning system as it arrives. For example, if we were using Linear Regression, we can do a single additional change to the parameters with Stochastic gradient descent on that single new data point. In this way, our data set size can be effectively infinite. Another advantage of this system is that it will slowly adapt over time to changes in the environment.

Map Reduce

Another very important, but very simple, means of dealing with large datasets is to split the data over multiple computers (or multiple cores in one computer if your libraries don't parallalize automatically), calculating the error slope for each subset seperately on each machine. This brings parallel computing to bear on the problem. Then we can do the gradient descent on a "master" computer re-combine the slopes found by each machine and adjusting our parameters by that total times alpha / m as usual. e.g. we add
s = sum(S,2) %sum up the columns, one column from each machine
before
theta = theta - alpha .* s


file: /Techref/method/ai/BigData.htm, 4KB, , updated: 2015/9/10 14:04, local time: 2024/11/21 10:36,
TOP NEW HELP FIND: 
3.144.92.165:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/method/ai/BigData.htm"> Machine Learning Methods for Big Data</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .