instruction stringlengths 15 29.9k |
|---|
I'm currently using [General Algebraic Modeling System](http://en.wikipedia.org/wiki/General_Algebraic_Modeling_System) (GAMS), and more specifically CPLEX within GAMS, to solve a very large mixed integer programming problem. This allows me to parallelize the process over 4 cores (although I have more, CPLEX utilizes a... |
I'd like to use my MSc thesis as an opportunity to explore 'data science'. Frankly, the term seems a little vague to me (or at least, I've heard so many people apply it to so many situations that it's become diluted), but I expect it to require:
1. machine learning (rather than traditional statistics);
2. a large e... |
Motivation
=
I work with datasets that contain personally identifiable information (PII) and sometimes need to share part of a dataset with third parties, in a way that doesn't expose PII and subject my employer to liability. Our usual approach here is to withhold data entirely, or in some cases to reduce its resol... |
I think that Bootstrap can be useful in my work, where we have a lot a variables that we don't know the distribution of it. So, simulations could help.
What are good sources to learn about Bootstrap/other useful simulation methods? |
What are good sources to learn about Bootstrap? |
If feasible I would link related records (e.g., Dave, David, etc.) and replace them with a sequence number (1,2,3, etc.) or a [hash of the string](http://www.cse.yorku.ca/~oz/hash.html) that is used to represent all related records (e.g., David instead of Dave).
I assume that third parties need not have any idea wha... |
Motivation
=
I work with datasets that contain personally identifiable information (PII) and sometimes need to share part of a dataset with third parties, in a way that doesn't expose PII and subject my employer to liability. Our usual approach here is to withhold data entirely, or in some cases to reduce its resol... |
If feasible I would link related records (e.g., Dave, David, etc.) and replace them with a sequence number (1,2,3, etc.) or a [hash of the string](http://www.cse.yorku.ca/~oz/hash.html) that is used to represent all related records (e.g., David instead of Dave).
I assume that third parties need not have any idea wha... |
With Hadoop 2.0 and YARN Hadoop is supposedly no longer tied only map-reduce solutions. With that advancement, what are the use cases for Apache Spark vs Hadoop considering both sit atop of HDFS? I've read through the introduction documentation for Spark, but I'm curious if anyone has encountered a problem that was mor... |
Motivation
=
I work with datasets that contain personally identifiable information (PII) and sometimes need to share part of a dataset with third parties, in a way that doesn't expose PII and subject my employer to liability. Our usual approach here is to withhold data entirely, or in some cases to reduce its resol... |
Is your Masters in Computer Science? Statistics?
Is 'data science' going to be at the center of your thesis? Or a side topic?
I'll assume your in Statistics and that you want to focus your thesis on a 'data science' problem. If so, then I'm going to go against the grain and suggest that you *should not* start ... |
I have a large number of samples which represent Manchester encoded bit streams encoded as audio signals. The frequency at which they are encoded is the primary frequency component when it is high, and there is a consistent amount of white noise in the background. I have manually decoded these streams, but I was wonder... |
Does anyone know some good tutorials on online machine learning technics?
I.e. how it can be used in real-time environments, what are key differences compared to normal machine learning methods etc.
UPD: Thank you everyone for answers, by "online" I mean methods which can be trained in a real-time mode, based on a ... |
Hadoop means HDFS, YARN, MapReduce, and a lot of other things. Do you mean Spark vs *MapReduce*? Because Spark runs on/with Hadoop, which is rather the point.
The primary reason to use Spark is for speed, and this comes from the fact that its execution can keep data in memory between stages rather than always persis... |
I'd like to explore 'data science'. The term seems a little vague to me, but I expect it to require:
1. machine learning (rather than traditional statistics);
2. a large enough dataset that you have to run analyses on clusters.
What are some good datasets and problems, accessible to a statistician with some prog... |
Why is there such a mismatch between the Model's predicted probability and theoretical probability in logistic regression? |
I'm developing a distributed application, and as it's been designed, there'll be a great load of communication during the processing. Since the communication is already as much *spread* along the entire process as possible, I'm wondering if there any standard solutions to improve the performance of the message passing ... |
I understand that compression methods may be split into two main sets: global and local. The first set works regardless of the data being processed, i.e., they do not rely on any characteristic of the data, and thus need not to perform any preprocessing over any part of the dataset (before the compression itself). On t... |
What is the difference between global and universal compression methods? |
I have a highly biased binary dataset - I have 1000x more examples of the negative class than the positive class. I would like to train a Tree Ensemble (like Extra Random Trees or a Random Forest) on this data but it's difficult to create training datasets that contain enough examples of the positive class.
What wou... |
What are the implications for training a Tree Ensemble with highly biased datasets? |
I understand that compression methods may be split into two main sets: global and local. The first set works regardless of the data being processed, i.e., they do not rely on any characteristic of the data, and thus need not to perform any preprocessing over any part of the dataset (before the compression itself). On t... |
If you expect (or find) that nodes are requesting the same data more than once, perhaps you could benefit from a caching strategy? Especially where some data is used much more often than others, so you can target only the most frequently-used information.
If the data is mutable, you also need a way to confirm that i... |
[K-means](http://en.wikipedia.org/wiki/K-means_clustering) is a well known algorithm for clustering, but there is also an online variation of such algorithm (online K-means). What are the pros and cons of these approaches, and when should each be preferred? |
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... |
I'm working on a project and need resources to get me up to speed.
The dataset is around 35000 observations on 30 or so variables. About half the variables are categorical with some having many different possible values, i.e. if you split the categorical variables into dummy variables you would have a lot more than... |
Learning ordinal regression in R? |
I recently saw a cool feature that [was once available](https://support.google.com/docs/answer/3543688?hl=en) in Google Sheets: you start by writing a few related keywords in consecutive cells, say: "blue", "green", "yellow", and it automatically generates similar keywords (in this case, other colors). See more example... |
I tried to detect outliers in the energy gas consumption of some dutch buildings, building a neural network model. I have very bad results, but I don't find the reason.
I am not an expert so I would like to ask you what I can improve and what I'm doing wrong. This is the complete description: https://github.com/den... |
The usual definition of regression (as far as I am aware) is _predicting a continuous output variable from a given set of input variables_.
Logistic regression is a binary classification algorithm, so it produces a categorical output.
Is it really a regression algorithm? If so, why? |
Is logistic regression a regression algorithm? |
In network structure, what is the difference between **k-cliques** and **p-cliques**, can anyone give a brief explaination with examples? Thanks in advanced! |
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 transac... |
One fairly powerful R package for regression with an ordinal categorical response is VGAM, on the CRAN. The vignette contains some examples of ordinal regression, but admittedly I have never tried it on such a large dataset, so I cannot estimate how long it may take. You may find some additional material about VGAM on ... |
Is logistic regression actually a regression algorithm? |
In network structure, what is the difference between **k-cliques** and **p-cliques**? Can anyone give a brief explaination with examples? |
In graph theory a clique indicates a fully connected set of nodes: [as noted here][1], a p-clique simply indicates a clique comoprised of p nodes. A k-clique is an undirected graph and a number k, and the output is a clique of size k if one exists.
[Clique Problem][2]
[1]: http://books.google.com/books?id=E3-... |
Which freely available datasets can I use to train a text classifier? |
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... |
I have a large number of samples which represent Manchester encoded bit streams as audio signals. The frequency at which they are encoded is the primary frequency component when it is high, and there is a consistent amount of white noise in the background.
I have manually decoded these streams, but I was wondering i... |
I thought that generalized linear model (GLM) would be considered a statistical model, but a friend told me that some papers classify it as a machine learning technique. Which one is true (or more precise)? Any explanation would be appreciated.
P.S. I am obviously a beginner in this field. |
Is GLM a statistical or machine learning model? |
As suggested, «going wild». First of all, correct, if I’m wrong:
* for exact product just a few features exist;
* there is no ultimate features list, and clients are able to add new features to their products;
If so, constructing full product-feature table could be computational expensive. And final data table w... |
I'm looking to use google's word2vec implementation to build a named entity recognition system. I've heard that recursive neural nets with back propagation through structure are well suited for named entity recognition tasks, but I've been unable to find a decent implementation or a decent tutorial for that type of mo... |
I'm looking to use google's word2vec implementation to build a named entity recognition system. I've heard that recursive neural nets with back propagation through structure are well suited for named entity recognition tasks, but I've been unable to find a decent implementation or a decent tutorial for that type of mo... |
Which freely available datasets can I use to train a text classifier?
We are trying to enhance our users engagement by recommending the most related content for him, so we thought If we classified our content based on a predefined bag of words we can recommend to him engaging content by getting his feedback on rando... |
In network structure, what is the difference between **k-cliques** and **p-cliques**, can anyone give a brief explaination with examples? Thanks in advanced!
============================
<br>EDIT:
I found an online [ppt][1] while I am googling, please take a look on **p.37** and **p.39**, can you comment on them?
... |
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.... |
As suggested, **going wild**. First of all, correct me if I’m wrong:
* Just a few features exist for each unique product;
* There is no ultimate features list, and clients are able to add new features to their products.
If so, constructing full product-feature table could be computational expensive. And final da... |
Have you considered a frequency-based approach exploiting simple word co-occurence in corpora? At least, that's what I've seen most folks use for this. I think it might be covered briefly in Manning and Schütze's book, and I seem to remember something like this as a homework assignment back in grad school...
More ba... |
The best language depends on what you want to do. First remark: don't limit yourself to one language. Learning a new language is always a good thing, but at some point you will need to choose. Facilities offered by the language itself are an obvious thing to keep into account *but* in my opinion the following are more ... |
Regarding prediction, statistics and machine learning sciences started to solve mostly the same problem from different perspectives.
Basically statistics assumes that the data were produced by a given stochastic model. So, from a statistical perspective, a model is assumed and given various assumptions the errors a... |
I'm not an expert but I guess the main problem is to answer this question:
Has an/any event affected the number of hits on a certain day?
But I don't know how to treat multiple events, so I would try to answer this question:
* Does event X affected the number of hits on a certain day?
Which can be answered ... |
I'm currently working with a dataset with a wide range of document lengths -- anywhere from a single word to a full page of text. In addition, the grammatical structure and use of punctuation varies wildly from document to document. The goal is to classify those documents into one of about 10-15 categories. I'm curr... |
For the record, I think this is the type of question that's perfect for the data science Stack Exchange. I hope we get a bunch of real world examples of data problems and several perspectives on how best to solve them.
I would encourage you *not* to use p-values as they can be pretty misleading ([1][1], [2][2]). My ... |
Back in my data analyst days this type of problem was pretty typical. Basically, everyone in marketing would come up with a crazy idea that the sold to higher ups as the single event that would boost KPI's by 2000%. The higher ups would approve them and then they would begin their "test". Results would come back, an... |
I wonder which type of model cross-validation to choose: K-fold or random sub-sampling?
My best guess is to use 2/3 of the data set (which is ~1000 items) for training and 1/3 for validation.
In this case K-fold gives only three iterations(folds), which is not enough to see stable average error.
On the other h... |
I wonder which type of model cross-validation to choose: K-fold or random sub-sampling?
My best guess is to use 2/3 of the data set (which is ~1000 items) for training and 1/3 for validation.
In this case K-fold gives only three iterations(folds), which is not enough to see stable average error.
On the other h... |
I wonder which type of model cross-validation to choose for classification problem: K-fold or random sub-sampling?
My best guess is to use 2/3 of the data set (which is ~1000 items) for training and 1/3 for validation.
In this case K-fold gives only three iterations(folds), which is not enough to see stable avera... |
**Edit: Warning, i leave my message but my answer seems wrong, please check out the comment below!**
I'm not an expert but I guess the main problem is to answer this question:
Has an/any event affected the number of hits on a certain day?
But I don't know how to treat multiple events, so I would try to answer ... |
I'm working on multiclass logistic regression model with a large number of features (numFeatures>100). Using a Maximum Likelihood Estimation based cost function and gradient, the fmincg algorithm solves the problem quickly... however, I am also experimenting with a different cost function and do not have a gradient..... |
efficient solution of fmincg without providing gradient? |
I'm working on multiclass logistic regression model with a large number of features (numFeatures > 100). Using a Maximum Likelihood Estimation based on the cost function and gradient, the fmincg algorithm solves the problem quickly. However, I'm also experimenting with a different cost function and do not have a gradie... |
Efficient solution of fmincg without providing gradient? |
In your training notebook you present results for training with 20 epochs. Have you tried varying that parameter, to see if it affects your performance? This is an important parameter for back-propagation.
For estimating your model parameters, as user tomaskazemekas pointed out, plotting Learning Curves is a very g... |
I wonder which type of model cross-validation to choose for classification problem: K-fold or random sub-sampling (bootstrap sampling)?
My best guess is to use 2/3 of the data set (which is ~1000 items) for training and 1/3 for validation.
In this case K-fold gives only three iterations(folds), which is not enoug... |
Conjugate Gradient -- the cg in Function MINimization (nonlinear) Conjugate Gradiant -- requires you to have a gradient function (or approximation) since that is a critical part of the algorithm itself: it needs to find the steepest descent direction quickly.
``fminsearch`` implements Nelder-Mead, a nonlinear gradie... |
In your notebooks, I did not see your neural network model, can you point which library is using, how many layers you have and what type of neural network are you using?
In your notebooks, it seems you are using the noisy and outlier dataset to train the neural network, I think you should train the neural network on... |
In order to understand the variety of ways machine learning can be integrated into production applications, I think it is useful to look at open source projects and papers/blog posts from companies describing their infrastructure.
The common theme that these systems have is the separation of model training from mode... |
In order to understand the variety of ways machine learning can be integrated into production applications, I think it is useful to look at open source projects and papers/blog posts from companies describing their infrastructure.
The common theme that these systems have is the separation of model training from mode... |
I have a load of documents, which have a load of key value pairs in them. The key might not be unique so there might be multiple keys of the same type with different values.
I want to compare the similarity of the keys between 2 documents. More specifically the string similarity of these values. I am thinking of usi... |
I have a load of documents, which have a load of key value pairs in them. The key might not be unique so there might be multiple keys of the same type with different values.
I want to compare the similarity of the keys between 2 documents. More specifically the string similarity of these values. I am thinking of usi... |
I have a load of documents, which have a load of key value pairs in them. The key might not be unique so there might be multiple keys of the same type with different values.
I want to compare the similarity of the keys between 2 documents. More specifically the string similarity of these values. I am thinking of usi... |
There is a general recommendation that algorithms in ensemble learning combinations should be different in nature. Is there a classification table, a scale or some rules that allow to evaluate how far away are the algorithms from each other? What are the best combinations? |
How to select algorithms for ensemble methods? |
I have a dataset with following specifications:
- Training dataset with 193176 samples with 2821 positives
- Test Dataset with 82887 samples with 673 positives
- There are 10 features.
I want to perform a binary classification ( say, 0/1 ). The issue I am facing is that the data is very biased or rather spar... |
1. Since you are doing binary classification, have you tried adjusting the classification threshold? Since your algorithm seems rather insensitive, I would try lowering it and check if there is an improvement.
2. You can always use [Learning Curves][1], or a plot of one model parameter vs. Training and Validation er... |
I have a dataset with following specifications:
- Training dataset with 193176 samples with 2821 positives
- Test Dataset with 82887 samples with 673 positives
- There are 10 features.
I want to perform a binary classification ( say, 0/1 ). The issue I am facing is that the data is very biased or rather spar... |
More than often data I am working with is not 100% clean. Even if it is reasonably clean, still there are there are pieces 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 ... |
More than often data I am working with is not 100% clean. Even if it is reasonably clean, still there are pieces 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 zip cod... |
More than often data I am working with is not 100% clean. Even if it is reasonably clean, still there are pieces 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 zip cod... |
Data Science and Machine Learning include a lot of different topics and it´s hard to stay up-to-date about all the news about papers, researches or new tutorials and tools.
What sources do you use to get all the information?
I use mostly Reddit as my first source and the subreddits Machine Learning and R
[http:/... |
What are your favorite sources for news about Machine Learning and Data Science? |
What is the very first thing you do when you get your hands on a new data set (assuming it is cleaned and well structured)? Please share sample code snippets as I am sure this would be extremely helpful for both beginners and experienced. |
The #1 most important thing is to *explicitly document your process*.
Different people working on different data make different choices. Any scientists who claim that their work is entirely objective and rational are in denial about the nature of science; every single model we create is informed by our biases and pe... |
The #1 most important thing is to *explicitly document your process*.
Different people working on different data make different choices. Any scientists who claim that their work is entirely objective and rational are in denial about the nature of science; every single model we create is informed by our biases and pe... |
The #1 most important thing is to *explicitly document your process*.
Different people working on different data make different choices. Any scientists who claim that their work is entirely objective and rational are in denial about the nature of science; every single model we create is informed by our biases and pe... |
More than often data I am working with is not 100% clean. Even if it is reasonably clean, still there are pieces 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 zip cod... |
I often am building a model (classification or regression) where I have some predictor variables that are sequences and I have been trying to find technique recommendations for summarizing them in the best way possible for inclusion as predictors in the model.
As a concrete example, say a model is being built to pre... |
If feasible I would link related records (e.g., Dave, David, etc.) and replace them with a sequence number (1,2,3, etc.) or a [salted](http://en.wikipedia.org/wiki/Salt_%28cryptography%29) [hash of the string](http://www.cse.yorku.ca/~oz/hash.html) that is used to represent all related records (e.g., David instead of D... |
I am a CS master student in data mining. My supervisor once told me that before I run any classifier or do anything with a dataset I must fully understand the data and make sure that the data is clean and correct.
My questions:
- What are the best practices to understand a dataset (high dimensional with numerical... |
I have a hobby project which I am contemplating committing to as a way of increasing my so far limited experience of machine learning. I have taken and completed the Coursera MOOC on the topic. My question is with regards to the feasibility of the project.
The task is the following:
Neighboring cats are from time... |
I often am building a model (classification or regression) where I have some predictor variables that are sequences and I have been trying to find technique recommendations for summarizing them in the best way possible for inclusion as predictors in the model.
As a concrete example, say a model is being built to pre... |
I've written a simple recommender which generates recommendations for users based on what they have clicked. The recommender generates a data file of this 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,b,.3
... |
What visualization technique to best describe this dataset ? |
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... |
What visualization technique to best describe a recommendation dataset? |
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... |
Is it a bird? Is it a cat? We have black-and-white magpies here. so that would fail.
First thing would be to exclude all areas that are green, cats are seldom green.
Then compare the rest to a reference image to remove static things like stones and stairs.
Detecting objects of a minimum size should be possible... |
Is it a bird? Is it a cat? We have black-and-white cat-sized! magpies here. so that would fail.
First thing would be to exclude all areas that are green, cats are seldom green.
Then compare the rest to a reference image to remove static things like stones and stairs.
Detecting objects of a minimum size should ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.