instruction
stringlengths
15
29.9k
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...
Although your question is not very specific so I'll try to give you some generic solutions. There are couple of things you can do here: - Check sparseMatrix from Matrix package as mentioned by @Sidhha - Try running your model in parallel using packages like snowfall, [Parallel](https://stat.ethz.ch/R-manual/R-dev...
I know that there is no a clear answer for this question, but let's suppose that I have a huge neural network, with a lot of data and I want to add a new feature in input. The "best" way would be to test the network with the new feature and see the results, but is there a method to test if the feature IS UNLIKELY helpf...
How to choose the features for a neural network?
I am searching for the correct definition for an experimental design I am using to test the robustness of different classification methods. I am creating different subsets of the full dataset by cutting away some samples. Each subset is created independently with respect to the others. Then I run each classifica...
I'm using an experimental design to test the robustness of different classification methods, and now I'm searching for the correct definition of such design. I'm creating different subsets of the full dataset by cutting away some samples. Each subset is created independently with respect to the others. Then, I run e...
Your approach of using a source version repository is a good one and it actually allows you also working on the cluster and then copying everything back. If you find yourself making minor edits to your Python script on your laptop, then updating your SVN directory on the cluster, why not work directly on the cluster...
I am trying to understand a neuroscience article by Karl Friston. In it he gives three equations that are, as I understand him, equivalent or inter-convertertable and refer to both physical and Shannon entropy. They appear as equation (5) in the article at http://www.fil.ion.ucl.ac.uk/spm/doc/papers/Action_and_behavior...
I am trying to understand a neuroscience article by Karl Friston. In it he gives three equations that are, as I understand him, equivalent or inter-convertertable and refer to both physical and Shannon entropy. They appear as equation (5) in the article at http://www.fil.ion.ucl.ac.uk/spm/doc/papers/Action_and_behavior...
I am trying to understand a neuroscience article by Karl Friston. In it he gives three equations that are, as I understand him, equivalent or inter-convertertable and refer to both physical and Shannon entropy. They appear as equation (5) in the article at http://www.fil.ion.ucl.ac.uk/spm/doc/papers/Action_and_behavior...
As far as I know the development of algorithms to solve the [Frequent Pattern Mining]() (FPM) problem, the road of improvements have some main checkpoints. Firstly, the [Apriori](http://en.wikipedia.org/wiki/Apriori_algorithm) algorithm was proposed in 1993, by [Agrawal et al.](http://dl.acm.org/citation.cfm?id=170072)...
As far as I know the development of algorithms to solve the [Frequent Pattern Mining]() (FPM) problem, the road of improvements have some main checkpoints. Firstly, the [Apriori](http://en.wikipedia.org/wiki/Apriori_algorithm) algorithm was proposed in 1993, by [Agrawal et al.](http://dl.acm.org/citation.cfm?id=170072)...
As far as I know the development of algorithms to solve the [Frequent Pattern Mining]() (FPM) problem, the road of improvements have some main checkpoints. Firstly, the [Apriori](http://en.wikipedia.org/wiki/Apriori_algorithm) algorithm was proposed in 1993, by [Agrawal et al.](http://dl.acm.org/citation.cfm?id=170072)...
Is FPGrowth still considered "state of the art" in frequent pattern mining?
When I started with ANN I thought I'd have to fight overfitting as the main problem. But in practice I can't even get my NN to pass the 20% error rate barrier. I can't even nearly beat my score on random forest! I'm seeking some very general or not so general advice on what should one do to make his NN start capturi...
I would like to use non-atomic data, as a feature for a prediction. Suppose I have a Table with these 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, Categorical ] ] - Column 5: A ...
From your question's wording I assume that you have a local machine and a remote machine where you update two files &mdash; a Python script and a Bash script. Both files are under SVN control, and both machines have access to the same SVN server. I am sorry I do not have any advice specific to your grid system, but...
I have a dataset which contains ~100,000 samples of 50 classes. I have been using SVM with an RBF kernel to train and predict new data. The problem though is the dataset is skewed towards different classes. For example, Class 1 - 30 (~3% each), Class 31 - 45 (~0.6% each), Class 46 - 50 (~0.2% each) I see that th...
I am an MSc student at the University of Edinburgh, specialized in machine learning and natural language processing. I had some practical courses focused on data mining, and others dealing with machine learning, bayesian statistics and graphical models. My background is a BSc in Computer Science. I did some software...
Starting my career as Data Scientist, is Software Engineering experience required?
It looks like the cosine similarity of two features is just their dot product scaled by the product of their magnitudes. When does cosine similarity make a better distance metric than the dot product? I.e. do the dot product and cosine similarity have different strengths or weaknesses in different situations?
I'm trying to use ARMA/ARIMA with the [statsmodel Python package][1], in order to predict the gas consumption. I tried with [a dataset][2] of this format: ![with this format](https://i.stack.imgur.com/uuEpZ.png) Using only the gas column. from pandas.tseries.offsets import * arma_mod20 = sm.tsa.ARMA...
I asked a data science question regarding how to decide on the best variation of a split test on the Statistics section of StackExchange. I hope I will have better luck here. The question is basically, "Why is mean revenue per user the best metric to make your decision on in a split test?" The original question is h...
Why use mean revinue in a split test?
I'm learning about matrix factorization for recommending systems and I'm seeing the term `latent features` occurring too frequently but I'm unable to understand what it means. I know what a feature is but I don't understand the idea of latent features. Could please explain it? Or at least point me to a paper/place wher...
Meaning of latent features?
I am using OpenCV letter_recog.cpp example to experiment on random trees and other classifiers. This example has implementations of six classifiers - random trees, boosting, MLP, kNN, naive Bayes and SVM. UCI letter recognition dataset with 20000 instances and 16 features is used, which I split in half for training and...
How to increase accuracy of classifiers?
I am using OpenCV letter_recog.cpp example to experiment on random trees and other classifiers. This example has implementations of six classifiers - random trees, boosting, MLP, kNN, naive Bayes and SVM. UCI letter recognition dataset with 20000 instances and 16 features is used, which I split in half for training and...
I am an MSc student at the University of Edinburgh, specialized in machine learning and natural language processing. I had some practical courses focused on data mining, and others dealing with machine learning, bayesian statistics and graphical models. My background is a BSc in Computer Science. I did some software...
I would like to use non-atomic data, as a feature for a prediction. Suppose I have a Table with these 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 am trying to understand a neuroscience article: - Friston, Karl J., et al. "Action and behavior: a free-energy formulation." *Biological cybernetics* 102.3 (2010): 227-260. ([DOI 10.1007/s00422-010-0364-z](http://link.springer.com/article/10.1007%2Fs00422-010-0364-z)) In this article, Friston gives three equati...
I am trying to understand a neuroscience article: - Friston, Karl J., et al. "Action and behavior: a free-energy formulation." *Biological cybernetics* 102.3 (2010): 227-260. ([DOI 10.1007/s00422-010-0364-z](http://link.springer.com/article/10.1007%2Fs00422-010-0364-z)) In this article, Friston gives three equati...
*I expected more from random trees*: - With random forests, typically for N features, sqrt(N) features are used for each decision tree construction. Since in your case *N*=20, you could try setting *max_depth* (the number of sub-features to construct each decision tree) to 5. - Instead of decision trees, line...
I am given a time series data vector (ordered by months and years),which contains only `0`s and `1`s. `1` s represent a person changes his job at a particular a month. **Questions:** What model can i use to determine model how frequently this person change his job ? In addition, this model should be able to predict...
Given time series data, how to model the frequency of someone changes his job?
What is the right approach and clustering algorithm for geo location clustering? I'm using the following code to cluster geolocation coordinates : import numpy as np import matplotlib.pyplot as plt from scipy.cluster.vq import kmeans2, whiten coordinates= np.array([ [lat, ...
t-SNE, as in [1], works by progressively reducing the Kullback-Leibler (KL) divergence, until a certain condition is met. The creators of t-SNE suggests to use KL divergence as a performance criterion for the visualizations: > you can compare the Kullback-Leibler divergences that t-SNE reports. It is perfectly fine...
Why use mean revenue in a split test?
New to the Data Science forum, and first poster here! This may be kind of a specific question (hopefully not too much so), but one I'd imagine others might be interested in. I'm looking for a way to basically query GitHub with something like this: Give me a collection of all of the public repositories that...
I have a timeseries with hourly gas consumption. I want to use ARMA/ARIMA to forecast the consumption on the next hour, basing on the previous. Why should I analyze/find the seasonality (with STL?)? ![enter image description here][1] [1]: https://i.stack.imgur.com/hYyH8.png
Why should I care about seasonal data when I forecast?
I am trying to find stock data to practice with, is there a good resource for this? I found this: ftp://emi.nasdaq.com/ITCH/ but it only has the current year. I already have a way of parsing the protocol, but would like to have some more data to compare with. It doesn't have to be in the same format, as long as it h...
I am a relatively new user to Hadoop (using version 2.4.1). I installed hadoop on my first node without a hitch, but I can't seem to get the Resource Manager to start on my second node. I cleared up some "shared library" problems by adding this to yarn-env.sh and hadoop-env.sh: > export HADOOP_HOME="/usr/local/...
I have a timeseries with hourly gas consumption. I want to use [ARMA](http://en.wikipedia.org/wiki/Autoregressive%E2%80%93moving-average_model)/[ARIMA](http://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average) to forecast the consumption on the next hour, basing on the previous. Why should I analyze/find t...
Absolutely. When you're working with data at that scale it's common to use a big data framework, in which case python or whatever language you're using is merely an interface. See for example [Spark's Python Programming Guide](http://spark.apache.org/docs/0.9.1/python-programming-guide.html). What kind of data do you h...
I'm trying to define a metric between job titles in IT field. For this I need some metric between words of job titles that are not appearing together in the same job title, e.g. metric between the words > senior, primary, lead, head, vp, director, stuff, principal, chief, or the words > analyst, expert, mod...
To handle such amount of data, programming language is not the main concern but the programming framework is. Frameworks such as MapReduce or Spark have bindings to many languages including Python. These frameworks certainly have many ready-to-use packages for data analysis tasks. But in the end it all comes to your re...
What are the major uses of NOSQL databases like mongodb in the field of data science?
Pylearn2 seems to be the library of choice, however I find their YAML configuration files off-putting. Python itself was designed to be an easy language for prototyping, why would you **not** use it to define the network properties themselves? We have great editors with autocompletion that would make your life much ...
Not sure if this is exactly what you're looking for, but r-base has a function called "adist" which creates a distance matrix of approximate string distances (according to the Levenshtein distance). Type '?adist' for more. words = c("senior", "primary", "lead", "head", "vp", "director", "stuff", "principal", "ch...
There are couple off things you need to understand when dealing with Big data - ###What is Big data? You might be aware of famous V's of Big data - Volume, Velocity, Variety... So, Python may not be suitable for all. And it goes with all data science tools available. You need to know which tool is good for what pu...
One benefit of the schema-free NoSQL approach is that you don't commit prematurely and you can apply the right schema at query time using an appropriate tool like [Apache Drill](http://incubator.apache.org/drill/). See [this presentation](http://wiki.apache.org/incubator/DrillProposal?action=AttachFile&do=get&target=Dr...
What's the difference between data products and intelligent systems?
I was starting to look into area under curve(AUC) and am a little confused about its usefulness. When first explained to me, AUC seemed to be a great measure of performance but in my research I've found that some claim its advantage is mostly marginal in that it is best for catching 'lucky' models with high standard ac...
Really great question, and one that I find that most people don't really understand on an intuitive level. `AUC` is in fact often predicted over accuracy for binary classification for a number of different reasons. First though, let's talk about exactly what `AUC` is. Honestly, for being one of the most widely used eff...
i want to become a **data scientist**. I studied applied **statistics** (actuarial science), so i have a great statistical background (regression, stochastic process, time series, just for mention a few). But now, I am going to do a master degree in **Computer Science** focus in Intelligent Systems. Here is my stud...
Statistics + Computer Science = Data Science?
I'm trying to define a metric between job titles in IT field. For this I need some metric between words of job titles that are not appearing together in the same job title, e.g. metric between the words > senior, primary, lead, head, vp, director, stuff, principal, chief, or the words > analyst, expert, mod...
I'm trying to define a metric between job titles in IT field. For this I need some metric between words of job titles that are not appearing together in the same job title, e.g. metric between the words > senior, primary, lead, head, vp, director, stuff, principal, chief, or the words > analyst, expert, mod...
My 'machine learning' task is of separating benign Internet traffic from malicious traffic. In the real world scenario, most (say 90% or more) of Internet traffic is benign. Thus I felt that I should go with the similar kind of data for training my models as well. But then I did come across a research paper or two (in ...
Should I go for a 'balanced' dataset or a 'representative' dataset?
My 'machine learning' task is of separating benign Internet traffic from malicious traffic. In the real world scenario, most (say 90% or more) of Internet traffic is benign. Thus I felt that I should go with the similar kind of data for training my models as well. But then I did come across a research paper or two (in ...
What is the best tool to use to visualize (draw the vertices and edges) a graph with 1000000 vertices? There are about 50000 edges in the graph. And I can compute the location of individual vertices and edges. I am thinking about writing a program to generate a svg. Any other suggestions?
I also suggest `Gephi` software (https://gephi.github.io), which seems to be quite powerful. Some additional information on using `Gephi` with **large networks** can be found [here][1] and, more generally, [here][2]. `Cytoscape` (http://www.cytoscape.org) is an alternative to `Gephi`, being an another popular platform ...
How can NOSQL databases like mongodb be used for data analysis? What are the features in them that can make data analysis faster and powerful?
I'm currently facing a project that I could solve with a relational database in a relatively painful way. Having heard so much about NOSQL, I'm wondering if there is not a more appropriate way of tackling it: Suppose we are tracking a group of animals in a forest (n ~ 500) and would like to keep a record of a set of...
is this a good case for NOSQL?
Three tables: **animal**, **observation**, and **sibling**. The observation has an **animal_id** column which links to the animal table, and the sibling table has **animal_1_id** and **animal_2_id** columns that indicates two animals are siblings for each row. Even with 5000 animals and 100000 observations I don't t...
Apologies if this is very broad question, what I would like to know is how effective is A/B testing (or other methods) of effectively measuring the effects of a design decision. For instance we can analyse user interactions or click results, purchase/ browse decisions and then modify/tailor the results presented to ...
"Because its there". The data has a seasonal pattern. So you model it. The data has a trend. So you model it. Maybe the data is correlated with the number of sunspots. So you model that. Eventually you hope to get nothing left to model than uncorrelated random noise. But I think you've screwed up your STL computa...
(too long for a comment) Basically, @Emre's answer is correct: simple correlation matrix and cosine distance should work well*. There's one subtlety, though - job titles are too short to carry important context. Let me explain this. Imagine LinkedIn profiles (which is pretty good source for data). Normally, they...
Most vehicle license/number plate extractors I've found involve reading a plate from an image (OCR) but I'm interested in something that could tag instances of license plates in a body of text. Are there any such annotators out there?
Are there any annotators or Named Entity Recognition for license plate numbers?
Pig script code error?
Have you heard of the "Data Science Association"? Do you expect it to become a professional body like the Actuaries Institute? If yes, then why? If no, then why not and do you see anyone else becoming the professional body? Lastly, is this question "on-topic" ?
Data Science Association?
Have you heard of the "Data Science Association"? <br>URL: http://www.datascienceassn.org/ <br>Do you expect it to become a professional body like the Actuaries Institute? <br>If yes, then why? <br>If no, then why not and do you see anyone else becoming the professional body? Lastly, is this question "on-topic"...
My data contains a set of start times and duration for an action. I would like to plot this so that for a given time slice I can see how many actions are active. I'm currently thinking of this as a histogram with time on the x axis and number of active actions on the y axis. My question is, how should I adjust the d...
How do you plot overlapping durations?
The output of my word alignment file looks as such: I wish to say with regard to the initiative of the Portuguese Presidency that we support the spirit and the political intention behind it . In bezug auf die Initiative der portugiesischen Präsidentschaft möchte ich zum Ausdruck bringen , daß wir den Geist und d...
How to get phrase tables from word alignments?
Consider, try, and perhaps even use multiple databases. It's not just a "performance" issue at play here. It's really going to come down to your requirements. How much data are you talking about? what kind of data? how fast do you need it? Are you more read heavy or write heavy? Here's one thing you can't do in a SQ...
I've been trying to create a similarity matrix in Pandas from with a matrix multiplication operation on a document-term count matrix with 2264 rows and 20475 columns. The calculation completes in IPython but inspection shows the results all come back as NaN. I've also tried doing the same job in numpy, tried conv...
How to fix similarity matrix in Pandas returning all NaNs?
I've been trying to create a similarity matrix in Pandas from with a matrix multiplication operation on a document-term count matrix with 2264 rows and 20475 columns. The calculation completes in IPython but inspection shows the results all come back as NaN. I've also tried doing the same job in numpy, tried conv...
My data contains a set of start times and duration for an action. I would like to plot this so that for a given time slice I can see how many actions are active. I'm currently thinking of this as a histogram with time on the x axis and number of active actions on the y axis. My question is, how should I adjust the d...
I would try to analyze and solve one or more of the problems published on **Kaggle Competitions** (https://www.kaggle.com/competitions). Note that the competitions are grouped by their expected *complexity*, from `101` (bottom of the list) to `Research` and `Featured` (top of the list). A color-coded vertical band is a...
Most often serialization error in (Py)Spark means that some part of your distributed code (e.g. functions passed to `map`) has **dependencies** on **non-serializable data**. Consider following example: rdd = sc.parallelize(range(5)) rdd = rdd.map(lambda x: x + 1) rdd.collect() Here you have distrib...
How can [NoSQL][1] databases like [MongoDB][2] be used for data analysis? What are the features in them that can make data analysis faster and powerful? [1]: http://en.wikipedia.org/wiki/NoSQL [2]: http://en.wikipedia.org/wiki/MongoDB
## Image Similarity based on Color Palette Distribution ## I am trying to compute similarity between two images based on their color palette distribution, let's say I have two sets of key value pairs as follows, Img1: `{'Brown': 14, 'White': 13, 'Black': 40, 'Gray': 31}` Img2: `{'Pink': 82, 'Brown': 8, 'White'...
I have implemented NER system with the use of CRF algorithm with my handcrafted features that gave quite good results. The thing is that I used lots of different features including POS tags and lemmas. Now I want to make the same NER for different language. The problem here is that I can't use POS tags and lemmas. I...
What are the different classes of data science problems that can be solved using mapreduce found in hadoop?
Data Science has many different sub-areas as described in [my post][1]). Nearly for each area, scientists and developer has significant contributions. To learn more about what can be done, please look at following websites: * Data Mining Algorithms & Machine Learning -> [Apache Mahout][3] * Statistics -> [RHadoop...
Data Science has many different sub-areas as described in [my post][1]). Nearly for each area, scientists and developer has significant contributions. To learn more about what can be done, please look at following websites: * Data Mining Algorithms & Machine Learning -> [Apache Mahout][3] * Statistics -> [RHadoop...
There was a recent furore with [facebook experimenting on their users to see if they could alter user's emotions](http://online.wsj.com/articles/furor-erupts-over-facebook-experiment-on-users-1404085840). Whilst I am not a professional data scientist I read about [data science ethics](http://columbiadatascience.com/...
There was a recent furore with [facebook experimenting on their users to see if they could alter user's emotions](http://online.wsj.com/articles/furor-erupts-over-facebook-experiment-on-users-1404085840) and now [okcupid](http://www.bbc.co.uk/news/technology-28542642). Whilst I am not a professional data scientist I...
What are the different classes of data science problems that can be solved using mapreduce programming model?
I need to build parse tree for some source code (on Python or any program language that describe by CFG). So, I have source code on some programming language and BNF this language. Can anybody give some advice how can I build parse tree in this case? Preferably, with tools for Python.
I am, admittedly, very new to data science. I have spent the last 8 months or so learning as much as I can about the field and its methods. I am having issues choosing which methods to apply. I am currently working with a large set of health insurance claims data that includes some laboratory and pharmacy claims. T...