instruction
stringlengths
15
29.9k
I've written a simple recommender which generates recommendations for users based on what they have clicked. The recommender generates a data file with the following format: userid,userid,simmilarity (between 0 and 1 - closer to 0 the more similar the users) a,b,.2 a,c,.3 a,d,.4 a,e,.1 e...
I'm trying to rank some percentages. I have numerators and denominators for each ratio. To give a concrete example: ratio is total graduates/total students in the school. But the issue is total number of students vary over a long range. (1000-20000) Smaller schools seem to have higher percentage of students graduat...
I'm trying to rank some percentages. I have numerators and denominators for each ratio. To give a concrete example, consider ratio as `total graduates / total students` in a school. But the issue is that `total students` vary over a long range (1000-20000). Smaller schools seem to have higher percentage of students ...
I've written a simple recommender which generates recommendations for users based on what they have clicked. The recommender generates a data file with the following format: userid,userid,simmilarity (between 0 and 1 - closer to 0 the more similar the users) a,b,.2 a,c,.3 a,d,.4 a,e,.1 e...
Though it's easy to say, it's better to treat the environment that changes as variables, describe/estimate your algorithm's performance base on these variables. And hopefully others will do the same. Of interest, [Experiments as Research Validation -- Have We Gone too Far?][1]. [1]: http://infolab.stanford.edu/~...
Definitely they can. I can target you to a **[nice paper][1]**. Once I used it for soccer league results prediction algorithm implementation, primarily aiming at having some value against bookmakers. From paper's abstract: > a Bayesian dynamic generalized model to estimate the time dependent skills of all teams in...
Why does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?
I'm new to the world of text mining and have been reading up on annotators at places like the <a href="http://uima.apache.org/">UIMA website</a>. I'm encountering many new terms like named entity recognition, tokenizer, lemmatizer, gazetteer, etc. Coming from a layman background, this is all very confusing so can anyon...
What are the main types of NLP annotators?
There are plenty of sources which provide the historical stock data but they only provide the OHLC fields along with volume and adjusted close. Also a couple of sources I found provide market cap data sets but they're restricted to US stocks. Yahoo Finance provides this data online but there's no option to download it ...
Where can i download historical market capitalization and daily turnover data for stocks?
Quant SE is better place for questions related to getting financial data: - [What data sources are available online][1] - http://quant.stackexchange.com/search?q=market+capitalization+data [1]: http://quant.stackexchange.com/questions/141/what-data-sources-are-available-online
Where can I download historical market capitalization and daily turnover data for stocks?
My data set is formatted like this: User-id | Threat_score aaa 45 bbb 32 ccc 20 The list contains the top 100 users with the highest threat scores. I generate such a list monthly and store each month's list in its own file. There are three things I would like to get from th...
If you are totally unfamiliar with ordinal regression, I would try to read the Tabachnick / Fidell (http://www.pearsonhighered.com/educator/product/Using-Multivariate-Statistics-6E/0205849571.page) chapter on the topic first - while not written for R, the book is very good at conveying the general logic and the "do's"...
When doing a Google image search, across the top it has figured out categories for the images of the topic being search for. I'm interested to know how this works and how it chooses and creates categories, unfortunately I can't find much about it at all. Is anyone able to shed some light on algorithms they may be using...
How does Google categorize results from it's image search?
<br> I am newbie with machine learning but I had an interesting problem. I have a large sample of people and visited sites. Some people have indicated gender, age and other parameters. I want to restore these parameters to all people. Which way I look?<br> I am familiar with neural networks, but it seems they don't ...
How use neural networks with variable count of inputs... and really many inputs?
<br> I am newbie with machine learning but I had an interesting problem. I have a large sample of people and visited sites. Some people have indicated gender, age and other parameters. I want to restore these parameters to all people. Which way I look?<br> I am familiar with Neural Networks (supervised learning), bu...
<br> I am newbie with machine learning but I had an interesting problem. I have a large sample of people and visited sites. Some people have indicated gender, age and other parameters. I want to restore these parameters to all people. Which way I look? Which algorithm is suitable?<br> I am familiar with Neural Netwo...
There are several classic datasets for machine learning classification/regression tasks. The most popular are: * [Iris Flower Data Set][1]; * [Titanic Data Set][2]; * [Motor Trend Cars][3]; * etc. But does anyone know similar datasets for networks analysis / graph theory? More concrete - I'm looking for **Gold...
How do you create an optimized walk list given longitude and latitude coordinates?
While doing a Google image search, the page displays some figured out categories for the images of the topic being searched for. I'm interested in learning how this works, and how it chooses and creates categories. Unfortunately, I couldn't find much about it at all. Is anyone able to shed some light on algorithms t...
How does Google categorize results from its image search?
I'm new to machine learning, but I have an interesting problem. I have a large sample of people and visited sites. Some people have indicated gender, age, and other parameters. Now I want to restore these parameters to each user. Which way do I look for? Which algorithm is suitable to solve this problem? I'm familia...
How to use neural networks with large and variable number of inputs?
I'm building a recommender system and using SVD as one of the preprocessing techniques. However, I want to normalize all my preprocessed data between 0 and 1 because all of my similarity measures (cosine, pearson, euclidean) depend on that assumption. After I take the SVD, is there a standard way to normalize the m...
How to normalize results of Singular Value Decomposition (SVD) between 0 and 1?
Folks here stated great steps, but I think there are great information at the following link [what I do when I get a new data set as told through tweets][1], It sums up the steps the folks tweeted answering the great @hmason question "Data people: What is the very first thing you do when you get your hands on a new da...
I have just learned about regularisation as an approach to control over-fitting, and I would like to incorporate the idea into a simple implementation of backpropagation and MLP that I put together. The formula I have for the update term (from Coursera ML course) is stated as a batch update e.g. for each weight, aft...
Any differences in regularisation in MLP between batch and individual updates?
I'm building a recommender system and using SVD as one of the preprocessing techniques. However, I want to normalize all my preprocessed data between 0 and 1 because all of my similarity measures (cosine, pearson, euclidean) depend on that assumption. After I take the SVD (A = USV^T), is there a standard way to nor...
I have just learned about regularisation as an approach to control over-fitting, and I would like to incorporate the idea into a simple implementation of backpropagation and [Multilayer perceptron](http://en.wikipedia.org/wiki/Multilayer_perceptron) (MLP) that I put together. The formula I have for the update term (...
There are several classic datasets for machine learning classification/regression tasks. The most popular are: * [Iris Flower Data Set][1]; * [Titanic Data Set][2]; * [Motor Trend Cars][3]; * etc. But does anyone know similar datasets for networks analysis / graph theory? More concrete - I'm looking for **Gold...
I had almost the same problem: 'restoring' age, gender, location for social network users. But I used users' ego-networks, not visited sites statistics. And I faced with two almost independent tasks: 1. 'Restoring' or 'predicting' data. You can use a bunch of different technics to complete this task, but my vote is ...
Why not just determine the correct value of lambda for your case using validation? Since you are not doing online learning (and thus have a dataset), it should be easy. I'm not sure if lambda in per-item learning is inversely proportional to the size of the training set. Rather, the value of lambda should be consid...
I have just learned about regularisation as an approach to control over-fitting, and I would like to incorporate the idea into a simple implementation of backpropagation and [Multilayer perceptron](http://en.wikipedia.org/wiki/Multilayer_perceptron) (MLP) that I put together. Currently I tend to cross-validate and k...
I have just learned about regularisation as an approach to control over-fitting, and I would like to incorporate the idea into a simple implementation of backpropagation and [Multilayer perceptron](http://en.wikipedia.org/wiki/Multilayer_perceptron) (MLP) that I put together. Currently to avoid over-fitting, I cross...
I have a matrix that is populated with discrete elements, and I need to cluster them (using R) into intact groups. So, for example, take this matrix: >[A B B C A] >[A A B A A] >[A B B C C] >[A A A A A] There would be two separate clusters for A, two separate clusters for C, and one cluster for B. Th...
What do you think is distance measure in your case? I assume there are three dimensions here: - `RowN` (row number) - `ColN` (column number) - `Value` (value: A, B or C) Is `value` scaled? In other words, is `A < B < C`? If yes, then - you can replace `{A, B, C}` with `{0, 1, 2}` (or may be `{10, ...
What do you think is distance measure in your case? I assume there are three dimensions here: - `RowN` (row number) - `ColN` (column number) - `Value` (value: A, B or C) That means data you get from `4x5` matrix looks like: Sample1 -> (1, 1, A) Sample2 -> (1, 2, B) ... Sample5 -> (1,...
I have a matrix that is populated with discrete elements, and I need to cluster them (using R) into intact groups. So, for example, take this matrix: [A B B C A] [A A B A A] [A B B C C] [A A A A A] There would be two separate clusters for A, two separate clusters for C, and one cluster ...
I understand Hadoop MapReduce and its features but I am confused about R MapReduce. One difference I have read is that R utilizes maximum RAM. So do perform parallel processing integrated R with Hadoop. My doubt is: - 1. R can do all stats, math and data science related stuff, but why R MapReduce? 2. Is th...
There's this side project I'm working on where I need to structure a solution to the following problem. I have two groups of people (clients). Group `A` intends to buy and group `B` intends to sell a determined product `X`. The product has a series of attributes `x_i`, and my objective is to facilitate the transacti...
There is a bunch of datasets made free by UC Irvine [to play with here](https://archive.ics.uci.edu/ml/datasets.html). Among those datasets, [there are a few dozen textual datasets](https://archive.ics.uci.edu/ml/datasets.html?format=&task=&att=&area=&numAtt=&numIns=&type=text&sort=nameUp&view=table) that might help yo...
I'm currently using several different classifiers on various entities extracted from text, and using precision/recall as a summary of how well each separate classifier performs across a given dataset. I'm wondering if there's a meaningful way of comparing the performance of these classifiers in a similar way, but wh...
Do you need a virtual machine as an instrument for your data science practice?
Roughly speaking, over-fitting typically occurs when the ratio ![enter image description here][1] is too high. Think of over-fitting as a situation where your model learn the training data by heart instead of learning the big pictures which prevent it from being able to generalized to the test data: this happe...
#Do you need a VM? You need to keep in mind that a virtual machine is a software emulation of your own or another machine hardware configuration that can run an operating systems. In most basic terms, it acts as a layer interfacing between the virtual OS, and your own OS which then communicates with the lower level ...
I'm working on a fraud detection system. In this field, new frauds appear regularly, so that new features have to be added to the model on ongoing basis. I wonder what is the best way to handle it (from the development process perspective)? Just adding a new feature into the feature vector and re-training the class...
In an ideal world, you retain all of your historical data, and do indeed run a new model with the new feature extracted retroactively from historical data. I'd argue that the computing resource spent on this is quite useful actually. Is it really a problem? Yes, it's a widely accepted technique to build an ensemble ...
I am an ml noob. I have a task at hand of predicting click probability given user information like city, state, os version, os family, device, browser family browser version, city, etc. I have been recommended to try logit since logit seems to be what MS and Google are using too. I have some questions regarding logisti...
I'm currently working on a project that would benefit from personalized predictions. Given an input document, a set of output documents, and a history of user behavior, I'd like to predict which of the output documents are clicked. In short, I'm wondering what the typical approach to this kind of personalization ...
I'm currently searching for labeled datasets to use to train a model to extract named entities from informal text (think something similar to tweets). Because capitalization and grammar are often lacking in the documents in my dataset, I'm looking for out of domain data that's a bit more "informal" than the news articl...
The answer to this question is going to vary pretty wildly depending on the size and nature of your data. At a high level, you could think of it as a special case of multilevel models; you have the option of estimating a model with complete pooling (i.e., a universal model that doesn't distinguish between users), model...
I guess you say that you want to use 3-fold cross-validation because you know something about your data (that using k=10 would cause overfitting? I'm curious to your reasoning). I am not sure that you know this, if not then you can simply use a larger k. If you still think that you cannot use standard k-fold cross-v...
For a recommendation system I'm using cosign similarity to compute similarities between items. However, for items with small amounts of data I'd like to bin them under a general "average" category (in the general not mathematical sense). To accomplish this I'm currently trying to create a synthetic observation to repre...
For a recommendation system I'm using cosine similarity to compute similarities between items. However, for items with small amounts of data I'd like to bin them under a general "average" category (in the general not mathematical sense). To accomplish this I'm currently trying to create a synthetic observation to repre...
For a recommendation system I'm using cosine similarity to compute similarities between items. However, for items with small amounts of data I'd like to bin them under a general "average" category (in the general not mathematical sense). To accomplish this I'm currently trying to create a synthetic observation to repre...
I'm trying to build a nonparametric density function for a fairly large dataset that can be evaluated efficently, and can be updated efficiently when new points are added. There will only ever be a maximum of 4 independent variables, but we can start off with 2. Lets use a gaussian kernel. Let the result be a probabili...
More often than not, data I am working with is not 100% clean. Even if it is reasonably clean, still there are portions that need to be fixed. When a fraction of data needs it, I write a script and incorporate it in data processing. But what to do if only a few entries needs to be fixed (e.g. misspelled city or ...
I am trying to find which classification methods, that do not use a training phase, are available. The scenario is gene expression based classification, in which you have a matrix of gene expression of m genes (features) and n samples (observations). A signature for each class is also provided (that is a list of t...
Which non-training classification methods are available?
I would like to use ANN in order to automate trading forex, preferebly USD/EUR or USD/GBP. I know this is hard and may not be straightforward. I have already read some parers, did some experiments but no much luck still. I would like to get advice from EXPERTS to make this work. Here is what I did so far: 1.I got t...
Suppose I want to use CART as classification tree (I want a categorical response). I have the training set, and I split it using observation labels. Now, to build the decision tree (classification tree) how are selected the features to decide which label apply to testing observations? Supposing we are working on ...
How are selected the features for a decision tree in CART?
I would like to use another type of data, not atomic data, as a feature for a prediction. Suppose I have a Table with those Features: - Column 1: Categorical - House - Column 2: Numerical - 23.22 - Column 3: A Vector - [ 12, 22, 32 ] - Column 4: A Tree - [ [ 2323, 2323 ],[2323, 2323] , [ Boolean, Categorical ] ] ...
I would like to use ANN to automate trading currencies, preferably USD/EUR or USD/GBP. I know this is hard and may not be straightforward. I have already read some papers and done some experiments but without much luck. I would like to get advice from EXPERTS to make this work. Here is what I did so far: 1. I got...
I Download and Installed CDH 5 Package succesfully on a Single Linux Node in Pseudo-distributed Mode on my CentOS 6.5 Starting Hadoop and Verifying it is Working Properly as in the below link http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Quick-Start/cdh5qs_prereq.html#../CDH5-Qui...
Note that I am doing everything in R. The problem goes as follow: Basically, I have a list of resumes (CVs). Some candidates will have work experience before and some don't. The goal here is to: based on the text on their CVs, I want to classify them into different job sectors. I am particular in those cases, i...
What algorithms should I use to perform job classification based on resume data?
R base function glm() uses Fishers Scoring for MLE, while the glmnet uses the coordinate descent method to solve the same equation ? Coordinate descent is more time efficient than Fisher Scoring as fisher scoring calculates the second order derivative matrix and some other matrix operation which makes it space and time...
I download and installed CDH 5 package succesfully on a single linux node in pseudo-distributed Mode on my CentOS 6.5 Starting Hadoop and verifying it is Working Properly as in [this link][1] I succesfully finished the following steps Step 1: Format the NameNode. Step 2: Start HDFS Step 3: Create the /tm...
Note that I am doing everything in R. The problem goes as follow: Basically, I have a list of resumes (CVs). Some candidates will have work experience before and some don't. The goal here is to: based on the text on their CVs, I want to classify them into different job sectors. I am particular in those cases, i...
Not enough rep for a comment, but check out: http://www.rdatamining.com/examples/text-mining Here, they will take you through loading unstructured text to creating a wordcloud. You can adapt this strategy and instead of creating a wordcloud, you can create a frequency matrix of terms used. The idea is to take the ...
Note that I am doing everything in R. The problem goes as follow: Basically, I have a list of resumes (CVs). Some candidates will have work experience before and some don't. The goal here is to: based on the text on their CVs, I want to classify them into different job sectors. I am particular in those cases, i...
I was building a model that predicts user churn for a website, where I have data on all users, both past and present. I can build a model that only uses those users that have left, but then I'm leaving 2/3 of the total user population unused. Is there a good way to incorporate data from these users into a model f...
In general regression models (any) can behave in an arbitrary way beyond the domain spanned by training samples. In particular, they are free to assume linearity of the modeled function, so if you for instance train a regression model with points: X Y 10 0 20 1 30 2 it is reasonabl...
I'm trying to use the sklearn_pandas module to extend the work I do in pandas and dip a toe into machine learning but I'm struggling with an error I don't really understand how to fix. I was working through the following dataset on [Kaggle][1]. It's essentially an unheadered table (1000 rows, 40 features) with fl...
What are some standard ways of computing the distance between documents?
What are some standard ways of computing the distance between individual search queries?
I have 2 datasets, one with positive instances of what I would like to detect, and one with unlabeled instances. What methods can I use ? As an example, suppose we want to understand detect spam email based on a few structured email characteristics. We have one dataset of 10000 spam emails, and one dataset of 100000...
i am very new to machine learning and in my first project have stumbled across a lot of issues which i really want to get through. i m using logistic regression using R's glmnet package with alpha = 0 for ridge regression i m using ridge regression actually since lasso deleted all my variables and gave very low A...
i am very new to machine learning and in my first project have stumbled across a lot of issues which i really want to get through. i m using logistic regression using R's glmnet package with alpha = 0 for ridge regression i m using ridge regression actually since lasso deleted all my variables and gave very low A...
I'm using Neural Networks to solve different Machine learning problems. I'm using Python and [pybrain][1] but this library is almost discontinued. Are there other good alternatives in Python? Thanks [1]: http://pybrain.org/
I am very new to machine learning and in my first project have stumbled across a lot of issues which I really want to get through. I'm using logistic regression with R's `glmnet` package and alpha = 0 for ridge regression. I'm using ridge regression actually since lasso deleted all my variables and gave very low ...
I'm trying to run some analysis with some big datasets (eg 400k rows vs. 400 columns) with R (e.g. using neural networks and recommendation systems). But, it's taking too long to process the data (with huge matrices, e.g. 400k rows vs. 400k columns). What are some free/cheap ways to improve R performance? I'm acce...
I have a set of datapoints from the unit interval (i.e. 1-dimensional dataset with numerical values). I receive some additional datapoints online, and moreover the value of some datapoints might change dynamically. I'm looking for an ideal clustering algorithm which can handle these issues efficiently. I know [seque...
I have generated a dataset of pairwise distances as follows: id_1 id_2 dist_12 id_2 id_3 dist_23 I want to cluster this data so as to identify the pattern. I have been looking at Spectral clustering and DBSCAN, but I haven't been able to come to a conclusion and have been ambiguous on how to make use of ...
In my Uni we have an HPC computing clusters. I use the cluster to train classifiers and so on. So usually to send a job to the cluster, (e.g. python scikit-learn script), I need to write a Bash scrip file that contains (among other lines) a line like this `qsub script.py`. However I find this process very very frust...
I have generated a dataset of pairwise distances as follows: id_1 id_2 dist_12 id_2 id_3 dist_23 I want to cluster this data so as to identify the pattern. I have been looking at Spectral clustering and DBSCAN, but I haven't been able to come to a conclusion and have been ambiguous on how to make use of ...
Note that I am doing everything in R. The problem goes as follow: Basically, I have a list of resumes (CVs). Some candidates will have work experience before and some don't. The goal here is to: based on the text on their CVs, I want to classify them into different job sectors. I am particular in those cases, i...
I am new to machine learning. I have a task at hand of predicting click probability given user information like city, state, OS version, OS family, device, browser family, browser version, etc. I have been advised to try logit since logit seems to be what MS and Google are using. I have some questions regarding logisti...
I'm working on a fraud detection system. In this field, new frauds appear regularly, so that new features have to be added to the model on ongoing basis. I wonder what is the best way to handle it (from the development process perspective)? Just adding a new feature into the feature vector and re-training the class...
I would like to use another type of data, not atomic data, as a feature for a prediction. Suppose I have a Table with those Features: <pre> - Column 1: Categorical - House - Column 2: Numerical - 23.22 - Column 3: A Vector - [ 12, 22, 32 ] - Column 4: A Tree - [ [ 2323, 2323 ],[2323, 2323] , [ Boolean, Categoric...
I would like to use another type of data, not atomic data, as a feature for a prediction. Suppose I have a Table with those Features: <pre> - Column 1: Categorical - House - Column 2: Numerical - 23.22 - Column 3: A Vector - [ 12, 22, 32 ] - Column 4: A Tree - [ [ 2323, 2323 ],[2323, 2323] , [ Boolean, Categoric...
In my university, we have an HPC computing cluster. I use the cluster to train classifiers and so on. So, usually, to send a job to the cluster, (e.g. python scikit-learn script), I need to write a Bash script that contains (among others) a command like `qsub script.py`. However, I find this process very very frustr...
This question is in response to a comment I saw on another question. The comment was regarding the Machine Learning course syllabus on Coursera, and along the lines of "SVMs are not used so much nowadays". I have only just finished the relevant lectures myself, and my understanding of SVMs is that they are a robu...
Are Support Vector Machines still considered "state of the art" in their niche?