instruction
stringlengths
15
29.9k
[Apache Spark](http://spark.apache.org/) [can do it](http://spark-summit.org/2014/talk/scalable-distributed-decision-trees-in-spark-mllib), using the new [MLLib](http://spark.apache.org/docs/1.1.0/mllib-decision-tree.html) library. [Here's a presentation](https://www.youtube.com/watch?v=3rRrcPXHu98), and [here are some...
I have found the video tutorial/IPython notebook format really helped me get into the python ecosystem. There were two tutorials at SciPy 2013 that cover sklearn ([part 1 of 1st tutorial][1], [github repo for notebooks][2]). Similar tutorials, from PyCon2012 and PyData2012, are out there for pandas but I don't h...
Which packages or functions can I use in R to plot 3D data like this?
There're many data points, each of which is associated with two coordinates and a numeral value, or three coordinates. And I wish it is coloured. I checked packages "scatterplot3d" and "plot3D" but I couldn't find one like the example I give. It is like it has a fitting surface. My data is basically like the follow...
How would I do parameter estimation and prediction for the adaptive regression model using R, as in the 4th page of the paper linked below? http://papers.ssrn.com/sol3/papers.cfm?abstract_id=923635 Could anyone clarify this for me? If you know adaptive regression models very well, share some useful link, or de...
I'm just starting to develop a Machine Learning application for academic purposes. I'm currently using R and training myself in it. However, in a lot of places, I saw people using Python. Could you tell me what people are using in academia and industry, and recommand one ?
I hope you can help me, as I have some questions on this topic. I'm new in the field of deep learning, and while I did some tutorials, I can't relate or distinguish concepts from one another. I hope that some specialist of this community can answer a few questions and help me to understand whats deep learning really is...
Why the interest in deep learning within the NLP and Machine Learning communities?
Since it's a master's thesis, how about writing something regarding decision trees, and their "upgrades": boosting and Random Forests? And then integrate that with Map/Reduce, together with showing how to scale a Random Forest on Hadoop using M/R?
I am trying to find a formula, method, or model to use to analyze the likelihood that a specific event influenced some longitudinal data. I am having difficultly figuring out what to search for on Google. Here is an example scenario: Image you own a business that has an average of 100 walk-in customers every day....
I am not sure whether I formulated the question correctly. Basically, what I want to do is: Let's suppose I have a list of 1000 strings which look like this: cvzxcvzx**string**cvzcxvz otortorotr**string**grptprt vmvmvmeop**string2**vmrprp vccermpqp**string2**rowerm proororor**string3**potrprt mprto...
Clustering strings inside strings?
Interesting question! I have not encountered it before so here is a solution I just made up, inspired by the approach taken by the word2vec paper: 1. Define the pair-wise similarity based on the longest common substring (LCS), or the LCS normalized by the products of the string lengths. Cache this in a matrix for an...
Interesting question! I have not encountered it before so here is a solution I just made up, inspired by the approach taken by the word2vec paper: 1. Define the pair-wise similarity based on the longest common substring (LCS), or the LCS normalized by the products of the string lengths. Cache this in a matrix for an...
I would think about starting with a power analysis: i.e. how many data points do you need to measure the effect (or parameter) that you are interested to a specified level of confidence, *ceteris paribus*? Then, you estimate a cost.
Is there a good java library for doing time series energy consumption forecasting based on weather data and other variables?
Interesting question! I have not encountered it before so here is a solution I just made up, inspired by the approach taken by the word2vec paper: 1. Define the pair-wise similarity based on the longest common substring (LCS), or the LCS normalized by the products of the string lengths. Cache this in a matrix for an...
I've looked at all the other sections on stackexchange and haven't found a better fit for this question. Sorry if it's misplaced. If it is, feel free to downvote, but could you please also drop a recommendation where the question would be better suited? Thanks! I work in an analytical role at a a large financial ser...
I have Train and Test data, how to calculate classification accuracy with evaluation top-label ? @attribute outlook {0, 1, 2} @attribute temperature {0, 1, 2} @attribute humidity {0, 1} @attribute windy {0, 1} @attribute play {0, 1} Folds: 0 Train: 1, 0, 0, 1, 0 2, 1, 0, 1,...
How to calculate classification accuracy?
Can someone explain rough vs fuzzy vs granular to me?
"**Granularity**" refers to the ***resolution*** of the variables under analysis. If you are analyzing *height* of people, you could use *course-grained variables* that have only a few possible values -- e.g. "above-average, average, below-average" -- or a *fine-grained variable*, with many or an infinite number of va...
Sorry, if this topic is not connect direct to the Data Science... I try to understand now the [Graphlab tool][1] works. Firstly I want to execute the toy examples from Gallery site. When I try to execute the example code, everything is ok excepted one command: I can not see the graphlab plot after `show()`. The comman...
Sorry, if this topic is not connect direct to the Data Science... I try to understand how the [Graphlab tool][1] works. Firstly I want to execute the toy examples from Gallery site. When I try to execute the example code, everything is ok excepted one command: I can not see the graphlab plot after `show()`. The comman...
Sorry, if this topic is not connected direct to the Data Science... I try to understand how the [Graphlab tool][1] works. Firstly I want to execute the toy examples from Gallery site. When I try to execute the example code, everything is ok excepted one command: I can not see the graphlab plot after `show()`. The comm...
I have Train and Test data, how to calculate classification accuracy with confusion matrix ? Thanks @attribute outlook {sunny, overcast, rainy} @attribute temperature {hot, mild, cool} @attribute humidity {high, normal} @attribute windy {TRUE, FALSE} @attribute play {yes, no} Train: ...
How to calculate classification accuracy with confusion matrix?
OK, so values at time t-1 predict values at time t. That makes sense. First you should decide whether you think these values are independent or not. Do the x predict the y or z at all? And, do you think just the previous 1 value is predictive, or the previous n? Either way you could model this as a simple regres...
I am kind of a newbie on machine learning and I would like to ask some questions based on a problem I have . Let's say I have x y z as variable and I have values of these variables as time progresses like : t0 = x0 y0 z0 <br> t1 = x1 y1 z1 <br> tn = xn yn zn <br> Now I want a model that when it's given...
Our system allows an admin to manage a database of university courses. These courses have multiple fields, like the department, a title, and a description. I am adding the ability to add learning objectives to a course. To simplify the problem, let's say that learning objectives are just tags. Courses can have more ...
Which Machine Learning algorithm: Sorted list of tags given metadata?
I'm training a NN with 8 features and 8000 training examples with a single output (0, 1) using the scipy.optimise CG algorithm and the results are somewhat inconsistent. The goal is to get the NN to be as 'precise' as possible (recall doesn't really matter too much) so I've set the threshold for y value quite high (0.7...
What are the common/best practices to handle time data for machine learning application? For example, if in data set there is a column with timestamp of event, such as "2014-05-05", how you can extract useful features from this column if any? Thanks in advance!
The most online tutorials like to use a simple example to introduce to machine learning by classify unknown text in spam or not spam. They say that this is a binary-class problem. But why is this a binary-class problem? I think it is a one-class problem! I do only need positive samples of my inbox to learn what is not ...
Your training data needs to be one set of data with samples of all the categories, because you are trying (I think) to create a model that will be fed such data. Have you given any thoughts as to what model(s) you might be using? I'm asking because pure classification models will achieve a better fit if the amount o...
The problem arises if you want to classify a new example as either spam or not spam. A one-class method will only give you some score of how well a new instance fits to this class, but how do you turn this into a binary prediction without knowing how big the score would be for the other class? If you look at the Nai...
Strictly speaking, "one class classification" does not make sense as an idea. If there is only one possible state of a predicted value, then there is no prediction problem. The answer is always the single class. Concretely, if you only have spam examples, you would always achieve 100% accuracy by classifying all ema...
The importance of a concept in mathematics depends on the circumstances of its application. Sometimes, its importance relies on the fact that it allows you to carry on with what you are doing. For example, you usually need column independence (independent variables between predictors) because multiple regression wi...
I've looked at all the other sections on stackexchange and haven't found a better fit for this question. Sorry if it's misplaced. If it is, feel free to downvote, but could you please also drop a recommendation where the question would be better suited? Thanks! I work in an analytical role at a a large financial ser...
I'm examining the activity of customers over the years which have about one event per year. This results in many short time-series for which I found the distributions (hit/miss over 4 years sorted by probability in the data): 0000 : 0.31834 0001 : 0.17582 0010 : 0.13605 0100 : 0.13554 1000 : ...
How to find a model for a short discrete time-series?
I'm examining the activity of customers over the years which have about one event per year. This results is many short time-series for which I found the distributions (hit/miss over 4 years sorted by probability in the data): 0000 : 0.31834 0001 : 0.17582 0010 : 0.13605 0100 : 0.13554 1000 : ...
I would start by graphing the time variable vs other variables and looking for trends. ## For example ![enter image description here][1] In this case there is a periodic weekly trend and a long term upwards trend. So you would want to encode two time variables: - `day_of_week` - `absolute_time` ## In...
I'm planing to write a classification program that is able to classify unknown text in around 10 different categories and if none of them fits it would be nice to know that. It is also possible that more then one category is right. My predefined categories are: c1 = "politics" c2 = "biology" c3 = "f...
Text-Classification-Problem, what is the right approach?
I am a newbie to data science with a typical problem. I have a data set with metric1, metric2 and metric3. All these metrics are interdependent on each other. I want to detect anomalies in metric3. Currently, I am using Nupic from numenta.org for my analysis and it doesn't seem to be effective. Is there any ML library ...
I am a newbie to data science with a typical problem. I have a data set with metric1, metric2 and metric3. All these metrics are interdependent on each other. I want to detect anomalies in metric3. Currently, I am using Nupic from numenta.org for my analysis and it doesn't seem to be effective. Is there any ML library ...
In most data acquisition settings it is useful to tag your data with time and location. If I write the data to csv file, what are the best formats that I can use for this two variables?
I have a continuous variable, sampled over a period of a year at irregular intervals. Some days have more than one observation per hour, while other periods have nothing for days. This makes it particularly difficult to detect patterns in the time series, because some months (for instance October) are highly sampled, w...
In most data acquisition settings it is useful to tag your data with time and location. If I write the data to csv file, what are the best formats that I can use for this two variables if I want to create a heatmap on Google Maps?
I'd like to apply some of the more complex supervised machine learning techniques in python - deep learning, generalized addative models, proper implementation of regularization, other cool stuff I dont even know about, etc. Any recommendations how I could find expert ML folks that would like to collaborate on proje...
I had a conversation with someone recently and mentioned my interest in data analysis and who I intended to learn the necessary skills and tools. They suggested to me that while it is great to learn the tools and build the skills there is little point in doing so unless i have specialized knowledge in a specific field...
Data science without knowledge of a specific topic, is it worth pursuing as a career?
# My Background I am a graduate student in Civil Engineering. For the analyses of road traffic data (vehicle trajectories as time series) I work with big data sets mostly about a million data points or more. I started using R language when MS Excel could not open the big data files. Using basic statistics knowle...
Learning resources for Data Science for applications in road traffic data?
I would start by graphing the time variable vs other variables and looking for trends. ## For example ![enter image description here][1] In this case there is a periodic weekly trend and a long term upwards trend. So you would want to encode two time variables: - `day_of_week` - `absolute_time` ## In...
This is a really strange question in my opinion. Why you're going to move in a new direction if you are not sure that you love this new direction or at least find it very interesting? If you do love Big Data, why do you care about the PhD intelligent creatures that are already in the field? The same amount of PhD creat...
I'm just starting to work on a relatively large dataset after ML course in Coursera. Trying to work on https://archive.ics.uci.edu/ml/datasets/YearPredictionMSD. Got an accuracy of 5.2 in training and test set with linear regression using gradient descent in octave. I tried adding all possible quadratic features, ...
I would recommend those materials: * Python * [Python for Data Analysis](http://www.amazon.com/Python-Data-Analysis-Wrangling-IPython/dp/1449319793) - book which nicely covers Pandas workflow with IPython. * R * [Coursera Data Science Specialisation](https://www.coursera.org/specialization/jhudatascience/...
I'm just starting to work on a relatively large dataset after ML course in Coursera. Trying to work on https://archive.ics.uci.edu/ml/datasets/YearPredictionMSD. Got an accuracy of 5.2 in training and test set with linear regression using gradient descent in octave. I tried adding all possible quadratic features (...
I have a data set that is pivoted in to the following format: [key] [id] [0] [1] [5] [10] [15] [60] [120] [180],.. [365] So key could be [Products] [1000] [15,000] [4000]... etc Where products is the category of item being reviewed and key is the identifier for the product; the only fields (0, 1,... 180,.. ...
The meaning of multi-class classification rules Example: I have two classification rules: (Refund, No) → (Cheat, No) Support = 0.4, Confidence = 0.57 (Refund, No) → (Cheat, Yes) Support = 0.3, Confidence = 0.43 => multi-class classification rules: (Refund, No) → (Cheat, No) v (Cheat, Yes) ...
The meaning of multi-class classification rules Example: I have two classification rules: (Refund, No) → (Cheat, No) Support = 0.4, Confidence = 0.57 (Refund, No) → (Cheat, Yes) Support = 0.3, Confidence = 0.43 => multi-class classification rules: (Refund, No) → (Cheat, No) v (Cheat, Yes) ...
The meaning of multi-class classification rules Example: I have two classification rules (Refund is a predictor and Cheat is a binary response): (Refund, No) → (Cheat, No) Support = 0.4, Confidence = 0.57 (Refund, No) → (Cheat, Yes) Support = 0.3, Confidence = 0.43 => multi-class classification rule...
By "large", I mean in the range of 100m to 10b rows. I'm currently using both Hadoop MapReduce and Amazon RedShift. MapReduce has been a little disappointing here. Redshift works very well if the data is distributed well for the given query. Are there other technologies that I should be looking at here? If so, wh...
What technologies are fastest at performing joins on large datasets?
I was going through an IEEE Research paper which has used Fuzzy ARTMAP for predicting the price of electricity given some highly correlated data. As per my basic understanding about Fuzzy ARTMAP it is a classification algorithm, so how will it be able to predict continuous data? The text from research paper is...
I need to collect several large datasets (thousands of samples, dozens of features) for regression with only categorical inputs. I already look for such datasets in the UCI repository, but I did not find any suitable one. Does anybody know of any such dataset, or of any additional dataset repository on the Internet?...
n this paper ([here][1]) they suppose a "unified architecture for NLP" with deep neural networks with multitask learning My problem is to understand the layer architecture in figure 1, see below: ![unified deep learning architecture for NLP][2] 1. Is someone able to give me a concrete, reproducible example how ...
How does the supposed "Unified Architecture for NLP" from Collobert and Weston 2008 really works?
I have a [database][1] of 3190 instances of DNA consisting of 60 sequential DNA nucleotide positions classified according to 3 types: EI, IE, Other. I want to formulate a supervised classifier. My present approach is to formulate a 2nd order Markov Transition Matrix for each instance and apply the resulting data ...
I have a [database][1] of 3190 instances of DNA consisting of 60 sequential DNA nucleotide positions classified according to 3 types: EI, IE, Other. So its a multi-class classification problem with 3190 instances and 60 predictors. My present approach to solve this classification problem is to formulate a 2nd order ...
I need to analyse a dataset about mobile phone usage (#calls, #sms, #internetConnections) per each cell and hour in the different days. My purpouse is detecting similarities in this usage (Monday-Tuesday is similar... or Monday night is different...). After this, I'd like to find the reason they are similar/dissimilar...
I need to analyse a dataset about mobile phone usage (#calls, #sms, #internetConnections) per each cell and hour in the different days. My purpouse is detecting similarities in the data (Monday-Tuesday is similar... or Monday night is different...). After this, I'd like to find the reason they are similar/dissimilar. ...
I have a biosemi bdf of EEG data which contains 32 channel. I've opened it using biosig, everything works great, a first list is channel and inside each list there are eeg data. But if I open it using MNE it the first list is eeg data, and the second list (inside the list of eeg data) are two list of eeg data. th...
I'm trying to create a logistic regression model in jpmml, then write the PMML to a file. The problem I'm having, is that I can't find any way to create a custom tag, such as "shortForm" and "longForm" in the following example: <MapValues outputColumn="longForm"> <FieldColumnPair field="gender" column="sh...
How can I create a custom tag in jpmml?
I need to analyse a dataset about mobile phone usage (#calls, #sms, #internetConnections) per each cell and hour in the different days. [date] [CGI/Position] [#calls] [#sms] [#internetConnections] My purpouse is detecting similarities in the data (Monday-Tuesday is similar... or Monday night is different...)....
We have a ruby-on-rails platform (w/ postgreSQL db) for people to upload various products to trade. Of course, many of these products listed are the same, while they are described differently by the consumer (either through spelling, case etc.) "lots of duplicates" For the purposes of analytics and a better UX, we'r...
For problems where the data represents online fraud or insurance (where each row represents a transaction), it is typical for the response variable to denote the value of fraud committed in dollars. Such a response value might have less than 5% non-zero values denoting fraudulent transactions. I have two questions ...
Modeling when the response variable has too many 0's and few continuous values?
I need to analyse a dataset about mobile phone usage (#calls, #sms, #internetConnections) per each cell and hour in the different days. [date] [CGI/Position] [#calls] [#sms] [#internetConnections] My purpose is detecting similarities in the data (Monday-Tuesday is similar... or Monday night is different...). ...
I need to analyse a dataset about mobile phone usage (#calls, #sms, #internetConnections) per each cell and hour in the different days. [date] [CDR/Position] [#calls] [#sms] [#internetConnections] My purpose is detecting similarities in the data (Monday-Tuesday is similar... or Monday night is different...). ...
Analyzing mobile usage. What kind of approach should I apply?
let's assume that I want to train a stochastic gradient descent regression algorithm using a dataset that has N samples. Since the size of the dataset is fixed, I will reuse the data T times. At each iteration or "epoch", I use each training sample exactly once after randomly reordering the whole training set. My im...
For problems where the data represents online fraud or insurance (where each row represents a transaction), it is typical for the response variable to denote the value of fraud committed in dollars. Such a response value might have less than 5% non-zero values denoting fraudulent transactions. I have two questions ...
We're currently using Redshift as our data warehouse, which we're very happy with. However, we now have a requirement to do machine learning against the data in our warehouse. Given the volume of data involved, ideally I'd want to run the computation in the same location as the data rather than shifting the data around...
TF IDF will give you the degree of measure of how relevant a document is to your query. owever, to evaluate your IR system you need to use metrics such as - Precision, Recall and F score. Precision: Out of all the documents that your system retrieves, which ones are relevant? This measures how much noise there is i...
There are really so many good resources now. If you want to stay away from textbooks, both O'Reilly Media and Packt Publishing offer much lighter but effective reading on a lot of great topics. These books are much more applied in practice. As far as learning the languages go, Coursera, Udacity, Code Acadmey, an...
How can I create a custom tag in JPMML?
I want to use Latent Dirichlet Allocation for a project and I am using Python with the gensim library. After finding the topics I would like to cluster the documents using an algorithm such as k-means(Ideally I would like to use a good one for overlapping clusters so any recommendation is welcomed). I managed to get th...
I'm looking for a supervised learning algorithm that can take 2d data for input and output. As an example of something similar to my data, consider a black image with some sparse white dots. Blur that image using a full range of grayscale. Then create a machine that can take the blurred image as input and produce the o...
I have measurements of 4 devices at two different points of time. A measurement basically consists of an array of ones and zeros corresponding to a bit value at the corresponding location: whos measurement1_dev1_time1 Name Size Bytes Class Attributes ...
I have a [database][1] of 3190 instances of DNA consisting of 60 sequential DNA nucleotide positions classified according to 3 types: EI, IE, Other. I want to formulate a supervised classifier. My present approach is to formulate a 2nd order Markov Transition Matrix for each instance and apply the resulting data ...
I did small survey and get such data: | ------------| Yes | No | Dont_Know | |-------------| | | | | Employee | 60 | 5 | 5 | | Workers | 17 | 0 | 1 | | Businessmen | 71 | 5 | 10 | | Jobless | 4 | 30 | 0 | (Sorry, I don't know how ...
I did small survey and get such data: |-------------| Yes | No | Dont_Know | |-------------| | | | | Employee | 60 | 5 | 5 | | Workers | 17 | 0 | 1 | | Businessmen | 71 | 5 | 10 | | Jobless | 4 | 30 | 0 | R...
I was wondering if someone could point me to suitable database formats for building up a user database: basically I am collecting logs of impressions data, and I want to compile a user database which sites user visits, country/gender/..? and other categorisations with the aim of a) doing searches: give me all ...
I have two classes (A,B) that I want to classify using a SVM. Say that I have a class C and a function f. Can I do this: ``` A' = f(A,C) = |A-C| B' = f(B,C) = |B-C| ``` and then perform the classification on A' and B' instead? In the context of my problem A and B are classes where elements are vectors. The f...
I am dealing with a lot of categorical data right now and I would like to use an appropriate data mining method in any tool [preferably R] to find the effect of each parameter [categorical parameters] over my target variable. To give a brief notion about the data that am dealing with, my target variable denotes the pro...
I think this is something that experienced programmers do all the time. But, given my limited programming experience, please bear with me. I have an excel file which has particular cell entries that read *[[{"from": "4", "response": true, "value": 20}, {"from": "8", "response": true, "value": 20}, {"from": "9"...