instruction stringlengths 15 29.9k |
|---|
does anyone know what (from your experience) is the best open source natural language generators out there? What are the relative merits of each? I'm looking to do sophisticated text summarization and would like to use theme extraction/semantic modeling in conjunction with NLG tools to create accurate, context-aware, a... |
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... |
So, I'm just starting to learn how a neural network can operate to recognize patterns and categorize inputs, and I've seen how an artificial neural network can parse image data and categorize the images ([demo with convnetjs](http://cs.stanford.edu/people/karpathy/convnetjs/demo/mnist.html)), and the key there is to do... |
Neural Network parse string data? |
I have some thoughts about your question. I hope it may help you to solve your problem.
> I'm planning to run some experiments with very large data sets, and I'd like to distribute the computation.
In [one of my posts][1], I have done research on topic of _evaluation methods of Data Science_. With __Learning Curv... |
I'm planning to run experiments with large datasets on distributed system in order to evaluate efficiency gains in comparison with previous proposals.
I have limited number of machines nearly ten machines having 200 GB of free space on hard disk on each. On the contrary, I wished to perform experiments on more than ... |
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... |
Well this looks like the most suited place for this question.
Every website collect data of the user, some just for usability and personalization, but the majority like social networks track every move on the web, some free apps on your phone scan text messages, call history and so on.
All this data siphoning is... |
What is the use of user data collection besides serving ads? |
I've never worked with medical data, but from general reasoning I'd say that relations between variables in healthcare are pretty complicated. Different models, such as random forests, regression, etc. could capture only part of relations and ignore others. In such circumstances it makes sense to use general **statisti... |
I am working on a data set that has multiple traffic speed measurements per day. My data is from the city of chicago, and it is taken every minute for about six months. I wanted to consolidate this data into days only, so this is what I did:
traffic <- read.csv("path.csv",header=TRUE)
traffic2 <- aggregate(... |
I am currently on a project that will build a model (train and test) on Client-side Web data, but evaluate this model on Sever-side Web data. Unfortunately building the model on Server-side data is not an option, nor is it an option to evaluate this model on Client-side data.
This model will be based on metrics col... |
I'm not an expert on this, so take my advice with a grain of salt. It's not clear for me what is the relationship between server-side and client-side data. Are they both **representative** of the same population? If Yes, I think it's OK to use different data sets for testing/training and evaluating your models. If No, ... |
If your work is parallelizable enough for a distributed network of cpus to make a difference, why not try to run it on the gpu instead? That will require rather less investment than a large network of cpus with individual software licenses and still provide parallel processing which you can do runtime tracking on yours... |
I am building a regression model and I need to calculate the below to check for correlations
1. Correlation between 2 Multi level categorical variables
2. Correlation between a Multi level categorical variable and
continuous variable
3. VIF(variance inflation factor) for a Multi
level categorical var... |
How to get correlation between two categorical variable and a categorical variable and continuous variable? |
I assume that each person on Facebook is represented as a node (of a Graph) in Facebook, and relationship/friendship between each person(node) is represented as an edge between the involved nodes.
Given that there are millions of people on Facebook, how is the Graph stored? |
I am trying to implement the Brown Clustering Algorithm [(link to paper)](http://delivery.acm.org/10.1145/180000/176316/p467-brown.pdf?ip=197.78.151.216&id=176316&acc=OPEN&key=4D4702B0C3E38B35%2E4D4702B0C3E38B35%2E4D4702B0C3E38B35%2E6D218144511F3437&CFID=522814165&CFTOKEN=99738065&__acm__=1407081874_5a9649adaf4a9d43b8f... |
Having worked with Facebook data a bit (harvested from Facebook users) we stored it just as a pair of values: USER_ID, FRIEND_USER_ID.
But I guess your questions is a bit deeper? You can store it in different ways, depending on your research question. One interesting option is triads for example - http://mypersonali... |
## Two Categorical Variables
Checking if two categorical variables are independent can be done with Chi-Squared test of independence.
This is a typical [Chi-Square test][1]: if we assume that two variables are independent, then the values of the contingency table for these variables should be distributed uniform... |
Are there any general rules that one can use to infer what can be learned/generalized from a particular data set? Suppose the dataset was taken from a sample of people. Can these rules be stated as functions of the sample or total population?
I understand the above may be vague, so a case scenario: Users participa... |
When is there enough data for generalization? |
Are there any general rules that one can use to infer what can be learned/generalized from a particular data set? Suppose the dataset was taken from a sample of people. Can these rules be stated as functions of the sample or total population?
I understand the above may be vague, so a case scenario: Users participa... |
I have a set of results from an A/B test (one control group, one feature group) which do not fit a Normal Distribution.
In fact the distribution resembles more closely the Landau Distribution.
I believe the independent t-test requires that the samples be at least approximately normally distributed, which discourag... |
I need to generate periodic (daily, monthly) web analytics dashboard reports. They will be static and don't require interaction, so imagine a PDF file as the target output. The reports will mix tables and charts (mainly sparkline and bullet graphs created with ggplot2). Think Stephen Few/Perceptual Edge style dashboard... |
What do you use to generate a dashboard in R? |
It is my understanding that *random sampling* is a **mandatory condition** for making any *generalization* statements. IMHO, other parameters, such as sample size, just affect probability level (confidence) of generalization. Furthermore, clarifying the @ffriend's comment, I believe that you have to **calculate** neede... |
The distribution of your data doesn't need to be normal, it's the [Sampling Distribution][1] that has to be nearly normal. If your sample size is big enough, then the sampling distribution of means from Landau Distribution should to be nearly normal, due to the [Central Limit Theorem][2].
So it means you should be ... |
## Two Categorical Variables
Checking if two categorical variables are independent can be done with Chi-Squared test of independence.
This is a typical [Chi-Square test][1]: if we assume that two variables are independent, then the values of the contingency table for these variables should be distributed uniform... |
Is there a known general table of statistical techniques that explain how they scale with sample size and dimension? For example, a friend of mine told me the other day that the computation time of simply quick-sorting one dimensional data of size n goes as n*log(n).
So, for example, if we regress y against X where ... |
How do various statistical techniques (regression, PCA, etc) scale with $n$ and $d$? |
How do various statistical techniques (regression, PCA, etc) scale with sample size and dimension? |
Data set looks like:
- 25000 observations
- up to 15 predictors of different types: numeric, multi-class categorical, binary
- target variable is binary
Which cross validation method is typical for this type of problems?
By default I'm using K-Fold. How many folds is enough in this case? (One of the models I... |
There is a text summarization project called SUMMARIST. Apparently it is able to perform abstractive text summarization. I want to give it a try but unfortunately the demo links on the website do not work. Does anybody have any information regarding this? How can I test this tool?
http://www.isi.edu/natural-language... |
I am fitting a model in R.
- use `createFolds` method to create several `k` folds from the data set
- loop through the folds, repeating the following on each iteration:
- `train` the model on k-1 folds
- `predict` the outcomes for the i-th fold
- calculate prediction accuracy
- average the accuracy
Doe... |
Can I classify set of documents using classifying method using limited number of concepts ? |
[Aleksandr's answer][1] is completely correct.
However, the way the question is posed implies that this is a straightforward ordinary least squares regression question: minimizing the sum of squared residuals between a dependent variable and a linear combination of predictors.
Now, while there may be many zeros i... |
I'm working on the dataset with lots of NA values with sklearn and pandas.DataFrame. I implemented different imputation strategies for different columns of the dataFrame based column names. For example NAs predictor 'var1' I impute with 0's and for 'var2' with mean.
When I try to cross validate my model using tr... |
how to impute missing values on numpy array created by train_test_split from pandas.DataFrame? |
If I understand you correctly, this is the case of **multiple linear regression with sparse data** (*sparse regression*). Assuming that, I hope you will find the following **resources** useful.
1) NCSU **lecture slides on sparse regression** with overview of algorithms, notes, formulas, graphics and references to li... |
To answer a simpler, but related question, namely 'How well can my model generalize on the data that I have?' the method of learning curves might be applicable. [This][1] is a lecture given by Andrew Ng about them.
The basic idea is to plot test set error and training set error vs. the complexity of the model you ar... |
To answer a simpler, but related question, namely 'How well can my model generalize on the data that I have?' the method of learning curves might be applicable. [This][1] is a lecture given by Andrew Ng about them.
The basic idea is to plot test set error and training set error vs. the complexity of the model you ar... |
To answer a simpler, but related question, namely 'How well can my model generalize on the data that I have?' the method of learning curves might be applicable. [This][1] is a lecture given by Andrew Ng about them.
The basic idea is to plot test set error and training set error vs. the complexity of the model you ar... |
I have train and test sets of chronological data consisting of 305000 instances and 70000,appropriately. There are 15 features in each instance and only 2 possible class values ( NEW,OLD). The problem is that there are only 725 OLD instances in the train set and 95 in the test.
The only algorithm which succeeds for... |
I'm not allowed to comment, but I have more a suggestion: you could try to implement some "Over-sampling Techniques" like SMOTE:
http://scholar.google.com/scholar?q=oversampling+minority+classes |
I am attempting to compile code using Knitr in R.
My code below is returning the following error, and causes errors in the rest of the document.
miss<-sample$sensor_glucose[!is.na(sample$sensor_glucose)]
Error: "## Warning: is.na() applied to non-(list or vector) of type 'NULL'"
> str(miss)
int [1:103] 213 ... |
I'm working on the problem with too many features and training my models takes way too long. I implemented forward selection algorithm to choose features.
However, I was wondering does scikit-learn have forward selection/stepwise regression algorithm? |
Does scikit-learn have forward selection/stepwise regression algorithm? |
We are storing the information about our users showing interest in our items. Based on this information, we would like to create a simple recommendation engine that will take the items I1, I2, I3 etc of the current user, search for all other users that had shown interest in those items, and then output the items I4, I5... |
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... |
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... |
I am attempting to compile code using Knitr in R.
My code below is returning the following error, and causes errors in the rest of the document.
miss<-sample$sensor_glucose[!is.na(sample$sensor_glucose)]
# Error: "## Warning: is.na() applied to non-(list or vector) of type 'NULL'"
str(miss)
... |
You mentioned regression and PCA in the title, and there is a definite answer for each of those.
The asymptotic complexity of linear regression reduces to O(P^2 * N) if N > P, where P is the number of features and N is the number of observations. More detail in [Computational complexity of least square regression op... |
Cross posting this from Cross Validated:
I've seen this question asked before, but I have yet to come across a definitive source answering the specific questions:
* What's the most appropriate statistical test to apply to a small A/B test?
* What's the R code and interpretation to analyze a small A/B test?
I'... |
First of all, some basics of classification (and in general any supervised ML tasks), just to make sure we have same set of concepts in mind.
Any supervised ML algorithm consists of at least 2 components:
1. Dataset to train and test on.
2. Algorithm(s) to handle these data.
Training dataset consists of a... |
Any clear winner for Data Science in Scala? |
I need to do coreference resolution for German texts and I plan to use OpenNLP to perform this task.
As far as I know OpenNLP coreference resolution does not support the German language.
Which components/data do I need to adapt the code such that it is possible to perform coreference resolution for German texts?
... |
does anybofy know a libarary for performing coreference resolution on German texts? |
I know that ARIMA can't detect multiple seasonality, but it is possible to [use fourier functions to add a second seasonality](http://robjhyndman.com/hyndsight/dailydata/).
I need to forecast gas consumption composed by a daily, weekly (week days-weekend), yearly seasonality. Does it make sense to apply three times ... |
Multiple seasonality with ARIMA? |
While I am not a data scientist, I am an epidemiologist working in a clinical setting. Your research question did not specify a time period (ie odds of developing CKD in 1 year, 10 years, lifetime?).
Generally, I would go through a number of steps before even thinking about modeling (univariate analysis, bivariate a... |
Why RBM tends to learn very similar weights? |
**(question unfinished: pressed Enter too early, wait for a while, please)**
![enter image description here][1]
These are 4 different weight matrices that I got after training **RBM** with ~4k visible units and only 96 hidden units/weight vectors. As you can see, weights are extremely similar - even black pixels ... |
![enter image description here][1]
These are 4 different weight matrices that I got after training **RBM** with ~4k visible units and only 96 hidden units/weight vectors. As you can see, weights are extremely similar - even black pixels on the face are reproduced. The other 92 vectors are very similar too, though _n... |
I know the difference between cluster and classification in machine learning.
But I don't know what is difference between text classification and topic models in documents
Also can I use topic model for the documents to identify one topic later on can I use the classification to classify the text inside this documen... |
what is difference between text classification and topic models? |
For experimenting we'd like to use the [Emoji][1] embedded in many Tweets as a ground truth/training data for simple quantitative senitment analysis. Tweets are usually too unstructured for NLP to work well.
Anyway, there are 722 Emoji in Unicode 6.0, and probably another 250 will be added in Unicode 7.0.
Is ther... |
does anybody know a libarary for performing coreference resolution on German texts?
As far as I know OpenNLP and Standord NLP are not able to perform coreference resolution for German Texts.
The only tool that I know is [CorZu][1] which is a python library.
[1]: http://www.cl.uzh.ch/static/news.php?om=view... |
For experimenting we'd like to use the [Emoji][1] embedded in many Tweets as a ground truth/training data for simple quantitative senitment analysis. Tweets are usually too unstructured for NLP to work well.
Anyway, there are 722 Emoji in Unicode 6.0, and probably another 250 will be added in Unicode 7.0.
Is ther... |
Does anyone know what (from your experience) is the best open source natural language generators (NLG) out there? What are the relative merits of each?
I'm looking to do sophisticated text summarization and would like to use theme extraction/semantic modeling in conjunction with NLG tools to create accurate, context... |
I am using the `stepAIC` function in R to do a bi-directional (forward and backward) stepwise regression. I do not understand what each return value from the function means.
The output is:
Df Sum of Sq RSS AIC
<none> 350.71 -5406.0
- aaa 1 ... |
I am using the `stepAIC` function in R to do a bi-directional (forward and backward) stepwise regression. I do not understand what each return value from the function means.
The output is:
Df Sum of Sq RSS AIC
<none> 350.71 -5406.0
- aaa 1 ... |
When I started with artificial neural networks (NN) 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 beat my score on random forest!
I'm seeking some very general or not so general advice on what should one do to make... |
While finding frequent subgraphs in single large graph, subgraph isomorphism (test) is not considered because its not anti-monotone. How and why subgraph isomorphism is not anti-monotone ? |
I like to find the feature weights in a [structured SVM][1] for ranking the features w.r.t. importance. I know that in a binary SVM the weight vector can be written as a [linear combination of examples][2]. But how do you compute the same for an SSVM?
[1]: http://en.wikipedia.org/wiki/Structured_support_vector_m... |
I like to find the weight vector for input-space features in a [structured SVM][1]. The idea is to identify the most important set of input-space features (based on the magnitude of their corresponding weights). I know that in a binary SVM the weight vector can be written as a [linear combination of examples][2], and t... |
I gave a very limited partial answer for the confirmatory factor analysis package that I developed for Stata in this [Stata Journal article](http://www.stata-journal.com/article.html?article=st0169) based on timing the actual simulations. Confirmatory factor analysis was implemented as a maximum likelihood estimation t... |
Let me show you an example of a hypothetical online clustering application:
![enter image description here][1]
At time n points 1,2,3,4 are allocated to the blue cluster A and points b,5,6,7 are allocated to the red cluster B.
At time n+1 a new point a is introduced which is assigned to the blue cluster A but ... |
Solutions for Continuous Online Cluster Identification? |
> But I don't know what is difference between text classification and topic models in documents
Text classification is a form of supervised learning -- the set of possible classes are known/defined in advance and don't change.
Topic modeling is a form of unsupervised learning (akin to clustering) -- the set of p... |
I have a problem of clustering huge amount of sentences into groups by their meanings. This is similar to a problem when you have lots of sentences and want to group them by their meanings.
What algorithms are suggested to do this? I don't know number of clusters in advance (and as more data is coming clusters can c... |
I have a problem of clustering huge amount of sentences into groups by their meanings. This is similar to a problem when you have lots of sentences and want to group them by their meanings.
What algorithms are suggested to do this? I don't know number of clusters in advance (and as more data is coming clusters can c... |
See [Lucene NGramTokenizer][1]
Are you sure you can't just use lucene or similar indexing techniques?
Inverted indexes will store the n-gram only once, then just the document ids that contain the ngram; they don't store this as highly redundant raw text.
As for finding ngrams that contain your query sub-n-gram... |
Let me show you an example of a hypothetical online clustering application:
![enter image description here][1]
At time n points 1,2,3,4 are allocated to the blue cluster A and points b,5,6,7 are allocated to the red cluster B.
At time n+1 a new point a is introduced which is assigned to the blue cluster A but ... |
Can I use unsupervised learning then I use supervised learning? |
The problem I am tackling is categorizing short texts into multiple classes. My current approach is to use tf-idf weighted term frequencies and learn a simple linear classifier (logistic regression). This works reasonably well (around 90% macro F-1 on test set, nearly 100% on training set). A big problem are unseen wor... |
![enter image description here][1]
These are 4 different weight matrices that I got after training **RBM** with ~4k visible units and only 96 hidden units/weight vectors. As you can see, weights are extremely similar - even black pixels on the face are reproduced. The other 92 vectors are very similar too, though _n... |
I am trying to run SVR using scikit learn ( python ) on a training dataset having 595605 rows and 5 columns(features) and test dataset having 397070 rows. The data has been pre-processed and regularized.
I am able to successfully run the test examples but on executing using my dataset and letting it run for over an ... |
![enter image description here][1]
These are 4 different weight matrices that I got after training **RBM** with ~4k visible units and only 96 hidden units/weight vectors. As you can see, weights are extremely similar - even black pixels on the face are reproduced. The other 92 vectors are very similar too, though _n... |
I've been analyzing a data set of ~400k records and 9 variables. I've fitted a logistic regression, a regression tree, a random forest, and a gradient boosted tree. All of them give virtual identical goodness of fit numbers when I validate them on another data set.
Why is this so? I'm guessing that it's because my o... |
Why might several types of models give almost identical results? |
> I'm guessing that it's because my observations to variable ratio is so high.
I think this explanation makes perfect sense.
> If this is correct, at what observation to variable ratio will different models start to give different results?
This will probably depend very much on your specific data (for instanc... |
its worth also looking at the training errors.
basically I disagree with your analysis. if logistic regression etc are all giving the same results it would suggest that the 'best model' is a very simple one (that all models can fit equally well - eg basically linear).
So then the question might be why is the b... |
I've been analyzing a data set of ~400k records and 9 variables The dependent variable is binary. I've fitted a logistic regression, a regression tree, a random forest, and a gradient boosted tree. All of them give virtual identical goodness of fit numbers when I validate them on another data set.
Why is this so? I'... |
Kernelized SVMs require the computation of a distance function between each point in the dataset, which is the dominating cost of O(n_features x n_observations^2). The storage of the distances is a burden on memory, so they're recomputed on the fly. Thankfully, only the points nearest the decision boundary are needed m... |
Where can I find free spatio-temporal dataset for download so that I can play with it in R ?
Thanks |
Where can I find free spatio-temporal dataset for download ? |
Caveat: I am a complete beginner when it comes to machine learning, but eager to learn.
I have a large dataset and I'm trying to find pattern in it. There may / may not be correlation across the data, either with known variables, or variables that are contained in the data but which I haven't yet realised are actual... |
I recently read [Similarity Measures for Short Segments of Text](http://research.microsoft.com/en-us/um/people/sdumais/ecir07-metzlerdumaismeek-final.pdf) (Metzler et al.). It describes basic methods for measuring query similarity, and in the paper, the data consists of queries and their top results. Results are lists... |
Query similarity: how much data is used in practice? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.