Questions tagged [machine-learning]

Implementation questions about machine learning algorithms. General questions about machine learning (concepts, theory, methodology, terminology, etc.) should be posted to their specific communities.

Machine learning revolves around developing self-learning computer algorithms that function by virtue of discovering patterns in data and making intelligent decisions based on such patterns.

Machine learning is a subfield of computer science that evolved from the study of pattern recognition and computational learning theory in artificial intelligence. Machine learning explores the construction and study of algorithms that can learn from and make predictions about data. Such algorithms operate by building a model from example inputs in order to make data-driven predictions or decisions rather than following strictly static program instructions.

NOTE: If you want to use this tag for a question not directly concerning implementation, then consider posting on Cross Validated, Data Science, or Artificial Intelligence instead; otherwise you're probably off-topic. Please choose one site only and do not cross-post to more than one - see Is cross-posting a question on multiple Stack Exchange sites permitted if the question is on-topic for each site? (tl;dr: no).

Classic Problems:

Relevant Algorithms:

Applications:

Software:

Related-tags:

Video Lectures:-

55241 questions
13
votes
4 answers

neuralnet prediction returns the same values for all predictions

I'm trying to build a neural net with the neuralnet package and I'm having some trouble with it. I've been successful with the nnet package but no luck with the neuralnet one. I have read the whole documentation package and can't find the solution,…
13
votes
2 answers

Matlab: neural network time series prediction?

Background: I am trying to use MATLAB's Neural Network toolbox to predict future values of data. I run it from the GUI, but I have also included the output code below. Problem: My predicted values lag behind the actual values by 2 time periods, and…
13
votes
3 answers

How to sample large database and implement K-means and K-nn in R?

I'm a new user to R, trying to move away from SAS. I'm asking this question here as I'm feeling a bit frustrated with all the packages and sources available for R, and I cant seem to get this working mainly due to data size. I have the following: A…
erichfw
  • 344
  • 3
  • 15
13
votes
1 answer

Why is the bias term not regularized in ridge regression?

In most of classifications (e.g. logistic / linear regression) the bias term is ignored while regularizing. Will we get better classification if we don't regularize the bias term?
user1599171
13
votes
1 answer

What to do first: Feature Selection or Model Parameters Setting?

This is more of a theoretical question. I'm working with the scikit-learn package to perform some NLP task. Sklearn provides many methods to perform both feature selection and setting of a model parameters. I'm wondering what I should do first. If I…
feralvam
  • 1,603
  • 2
  • 17
  • 20
13
votes
5 answers

Can evolutionary computation be a method of reinforcement learning?

What is evolutionary computation? Is it a method of reinforcement learning? Or a separate method of machine learning? Or maybe none? Please, cite references used to answer this question.
13
votes
3 answers

weka.core.UnassignedDatasetException when creating an unlabeled instance

I trained an IBK classifier with some training data that I created manually as following: ArrayList atts = new ArrayList(); ArrayList classVal = new…
TeFa
  • 974
  • 4
  • 15
  • 37
13
votes
1 answer

Assign new data point to cluster in kernel k-means (kernlab package in R)?

I have a question about the kkmeans function in the kernlab package of R. I am new to this package and please forgive me if I'm missing something obvious here. I would like to assign a new data point to a cluster in a set of clusters that were…
carl5978
  • 131
  • 1
  • 3
12
votes
1 answer

The Free energy approximation Equation in Restriction Boltzmann Machines

According a deeplearning tutorial: The free energy in python is def free_energy(self, v_sample): ''' Function to compute the free energy ''' wx_b = T.dot(v_sample, self.W) + self.hbias vbias_term = T.dot(v_sample, self.vbias) …
ryo
  • 568
  • 1
  • 4
  • 16
12
votes
4 answers

Need good way to choose and adjust a "learning rate"

In the picture below you can see a learning algorithm trying to learn to produce a desired output (the red line). The learning algorithm is similar to a backward error propagation neural network. The "learning rate" is a value that controls the…
sanity
  • 35,347
  • 40
  • 135
  • 226
12
votes
8 answers

Neural Network Back-Propagation Algorithm Gets Stuck on XOR Training PAttern

Overview So I'm trying to get a grasp on the mechanics of neural networks. I still don't totally grasp the math behind it, but I think I understand how to implement it. I currently have a neural net that can learn AND, OR, and NOR training patterns.…
12
votes
2 answers

NLP for extracting actions from text

I'm hoping somebody can point me in the right direction to learn about separating out actions from a bunch of text. Suppose I have this text Drop off the dry cleaning, and go to the corner store and pick-up a jug of milk and get a pint of…
pedalpete
  • 21,076
  • 45
  • 128
  • 239
12
votes
4 answers

Random projection algorithm pseudo code

I am trying to apply Random Projections method on a very sparse dataset. I found papers and tutorials about Johnson Lindenstrauss method, but every one of them is full of equations which makes no meaningful explanation to me. For example, this…
Ahmed
  • 219
  • 1
  • 3
  • 8
12
votes
2 answers

__init__() got an unexpected keyword argument 'cachedir' when importing top2vec

I keep getting this error when importing top2vec. TypeError Traceback (most recent call last) Cell In [1], line 1 ----> 1 from top2vec import Top2Vec File…
12
votes
2 answers

ImportError: cannot import name 'DecisionBoundaryDisplay' from 'sklearn.inspection'

I imported sklearn DecisionBoundaryDisplay via the below command in my Google Colab file. from sklearn.inspection import DecisionBoundaryDisplay And I'm getting the following error. ImportError: cannot import name 'DecisionBoundaryDisplay' from…