Goto

Collaborating Authors

 Statistical Learning


[P] Linear Regression with Python • /r/MachineLearning

#artificialintelligence

You can solve that optimisation problem using both gradient descent and as a closed-form solution, although for really big datasets it is preferable to use the former since calculating the inverse would be really computationally costly.


Logistic Regression using python

@machinelearnbot

This article was posted by Arpan Gupta (Indian Institute of Technology). Let's learn from a precise demo on Fitting Logistic Regression on Titanic Data Set for Machine Learning Description:On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships.


What is XGBoost and why you should include it in your Machine Learning toolbox

#artificialintelligence

Over the past few years, Machine Learning has taken a leading role in the discovery of data-driven solutions. Of these solutions, classification is by far one of the most commonly used areas of Machine Learning which is widely applied in fraud detection, image classification, ad click-through rate prediction, identification of medical conditions and a number of other areas. There is a range of different classification algorithms, but over the years single-model approach is being replaced by ensemble methods which combine a number of different algorithms and provide more accurate results than separate models. If you have ever tried to apply an ensemble method on a big data set you should have definitely run into a very common problem - the computation takes hours, sometimes even days or weeks, unless you have a powerful machine. At the Higgs Boson Data Science competition everyone's attention was caught by XGBoost - a new classification algorithm which outperformed all other Machine Learning algorithms used in this competition and brought the 1st place to its developers.


How seasonal components can be represented as sinusoids in a regression model.

@machinelearnbot

There was a verbal solution given to this problem in the members only section. I'm not sure if its "legal" to share the whole thing, but here is an excerpt of the solution. " The time series has a weekly periodicity with two peaks: Monday and Thursday, corresponding respectively to the publication of the Monday and Thursday digests. The impact of the Monday and Thursday email blasts extent over the next day; this makes measuring the yield more difficult, unless you use additional data, e.g. from our newsletter vendor. However, the bulk of the impact is really on Monday and Thursday."


Linear Regression with Python

#artificialintelligence

Let's start with a simple problem, we suppose that we have a small dataset with house prices for a specific area in a city, the database contains two fields, the size of the house and its price (SIZE, PRICE), and I would like to know the price of a house with a specific size, the problem is that I don't have that size in my dataset, what should I do? We already know from the title that the solution is linear regression, but to explain more easier, I've a collected a little dataset that contains house prices, in the table below a snippet from the dataset: Visualization helps us a lot in identifying patterns in data, that's way to have a better view to our dataset, I m going to plot it using matplotlib python library: From the plotting we can see that the price grows with the size, but the points don't make a prefect line that can help us predict the price of a new size, so we need to find a linear function h(x) that passes next to all the points but not necessary over them, we call the function the hypothesis: In the equation 2, m is the size of our dataset, Xi is the ith price and Yi is the ith size in the dataset, we call J the error function (or the objective function) that we need to minimize. There are other error functions or estimators in statistics that we can use, but in our case we'll use the MSE or the mean squared error estimator, because it will help us find our unknowns parameters more easier, our function will become: The estimator J takes two arguments, which means it's a 3D function, the figure 3 shows how the function looks like in a 3D graph, our goal here is to find the minimum value, which is the lowest point in the graph below, imagine putting a ball inside the graph, the ball will slide into the bottom of the shape. To find the lowest point in the shape, or in another word minimizing the objective function, we'll use the gradient descent algorithm, which is very simple to understand. To reach the bottom of the shape, we will choose randomly a point in the graph, that's mean setting θ0 and θ1 to a random value, at that point we need to decide, do we need to go up or down?


hyperopt-sklearn by hyperopt

#artificialintelligence

Finding the right classifier to use for your data can be hard. Once you have chosen a classifier, tuning all of the parameters to get the best results is tedious and time consuming. Even after all of your hard work, you may have chosen the wrong classifier to begin with. Hyperopt-sklearn provides a solution to this problem. Any search algorithm available in hyperopt can be used to drive the estimator.


Machine Learning Object Oriented - File Exchange - MATLAB Central

#artificialintelligence

The goal of this object is to minimise spending attention to irrelevant details and spent time to the problem. Possible model types are continuous, binomial and multinomial. This class and corresponding functionality is object-oriented. This enables the user to focus on the statistics only, instead of paying attention to irrelevant details (how to partition the data, how to handle missing values, etc.). The most popular model classes are already available: generalised linear models (with a stepwise or lasso feature selection), support vector machines, decision trees and neural networks.


Bayesian Learning of Consumer Preferences for Residential Demand Response

arXiv.org Machine Learning

In coming years residential consumers will face real-time electricity tariffs with energy prices varying day to day, and effective energy saving will require automation - a recommender system, which learns consumer's preferences from her actions. A consumer chooses a scenario of home appliance use to balance her comfort level and the energy bill. We propose a Bayesian learning algorithm to estimate the comfort level function from the history of appliance use. In numeric experiments with datasets generated from a simulation model of a consumer interacting with small home appliances the algorithm outperforms popular regression analysis tools. Our approach can be extended to control an air heating and conditioning system, which is responsible for up to half of a household's energy bill.


Robust Semi-supervised Least Squares Classification by Implicit Constraints

arXiv.org Machine Learning

We introduce the implicitly constrained least squares (ICLS) classifier, a novel semi-supervised version of the least squares classifier. This classifier minimizes the squared loss on the labeled data among the set of parameters implied by all possible labelings of the unlabeled data. Unlike other discriminative semi-supervised methods, this approach does not introduce explicit additional assumptions into the objective function, but leverages implicit assumptions already present in the choice of the supervised least squares classifier. This method can be formulated as a quadratic programming problem and its solution can be found using a simple gradient descent procedure. We prove that, in a limited 1-dimensional setting, this approach never leads to performance worse than the supervised classifier. Experimental results show that also in the general multidimensional case performance improvements can be expected, both in terms of the squared loss that is intrinsic to the classifier, as well as in terms of the expected classification error.


Network classification with applications to brain connectomics

arXiv.org Machine Learning

While statistical analysis of a single network has received a lot of attention in recent years, with a focus on social networks, analysis of a sample of networks presents its own challenges which require a different set of analytic tools. Here we study the problem of classification of networks with labeled nodes, motivated by applications in neuroimaging. Brain networks are constructed from imaging data to represent functional connectivity between regions of the brain, and previous work has shown the potential of such networks to distinguish between various brain disorders, giving rise to a network (or graph) classification problem. Existing approaches to graph classification tend to either treat all edge weights as a long vector, ignoring the network structure, or focus on the graph topology while ignoring the edge weights. Our goal here is to design a graph classification method that uses both the individual edge information and the network structure of the data in a computationally efficient way. We are also interested in obtaining a parsimonious and interpretable representation of differences in brain connectivity patterns between classes, which requires variable selection. We propose a graph classification method that uses edge weights as variables but incorporates the network nature of the data via penalties that promotes sparsity in the number of nodes. We implement the method via efficient convex optimization algorithms and show good performance on data from two fMRI studies of schizophrenia.