Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [machine-learning]

relates to algorithms that are "trained" by some data set.

-2
votes
0answers
14 views

How can I customise loss functions in scikit-learn library?

How can I use customised loss functions in scikit-learn? For example, instead of using mean squared value, I want to use mean squared value multiplied by the true value of the sample? I have used the ...
1
vote
1answer
43 views

Compare two arrays by the number of occurances

I have the following dictionary: { "Drama": 8, "Adventure": 8, "Action": 4, "Comedy": 3, "Thriller": 1 } This dictionary is like a representation of a user's preferences in movies. (in the past he ...
-2
votes
0answers
25 views

What is batch / batch size in neural networks? [migrated]

I have some problems with understanding of batch concept and batch size. I messed something up. First i start it consider based on convolutional neural network I heard two versions: 1. When batch ...
1
vote
1answer
62 views

Predicting Diagnosis Codes

I am very new to Machine Learning. I've read about it and I successfully did a tutorial where we looked at the dimensions of Iris petals and predicted what other Iris petal sizes may be. This all made ...
1
vote
2answers
117 views

Distributed training of many small ML models

I have a data science application that involves training tens of thousands of small individual Gaussian models. By "small", I mean that any individual model can easily be trained on one of our worker ...
2
votes
3answers
63 views

Redesigning Procedural Decision Engine To Leverage Machine Learning (and Which)

I'm not sure if this is the right forum, but I'm really looking for an advice on this. We've a procedural decision engine, which is fairly rudimentary, to decide application routing. It's basically ...
-1
votes
1answer
194 views

Battery level prediction model

I have the idea of develop a model that predicts the battery charge level of my system for now until the following 5 days. The battery is charged using a solar panel. I am writing my code in Python 2....
0
votes
1answer
90 views

Clustering Algorithm with max number of clusters

I'm looking for a clustering algorithm (ideally density based) that allows me to specify the maximum number of clusters (but not the exact number). All points must be assigned to a cluster, so I can't ...
-3
votes
1answer
68 views

How to physically test a machine learning model?

I am new to machine learning. I have implemented a machine learning model which detects sound (for example: horn, siren, hammer etc) and predicts the type of sound. I have to physically test the model ...
1
vote
0answers
20 views

Bernoulli naive bayes document model for multi-label classification

I want to ask about Bernoulli Naive Bayes document model. Can we use Bernoulli Naive Bayes document model for multi-label classification of documents?
2
votes
2answers
202 views

Is manually tagging content an ideal start for eventual machine learning?

I'm putting together a mobile app that would allow users to search, rate, and upload photos of dishes at restaurants. I have no machine learning experience (just FE/BE/Mobile) so for the time being I ...
-1
votes
1answer
459 views

Training data in unsupervised learning?

Unsupervised learning (USL) is about learning/constructing the algorithm to find the hidden data pattern based on training data without hard coded business rules like arithmetic sum, etc. Example of ...
0
votes
1answer
151 views

How do I check programmatically if two photos show the same drawing? [closed]

Imagine a simple drawing of let's say a duck. And you have an photo of it in your database. Now a user takes a second photo of the same drawing of the duck. What approaches exist to check if both ...
1
vote
1answer
360 views

Distinction between AI, ML, Neural Networks, Deep learning and Data mining

I have recently started exploring the field of machine learning (ML). I think I understand the difference between ML and AI at high level, but I wanted to understand more accurately the differences ...
0
votes
0answers
33 views

Software design implementation - Is it possible to pass a word2vec model as input to a neural net?

I am trying to use a neural net for information extraction. I want to extract a specific human name (name of the person / persons with cancer) from a document that may have many names. I have ...
2
votes
0answers
80 views

Software design strategy for a machine learning tool that outputs a subset of the text input (Information Extraction)?

Let's say I have thousands of pdfs that are each about 30k words written in conversational English. In each of the pdfs there is a name / names of a person/people who snowboard. There are also many ...
-2
votes
1answer
72 views

Licensing of classifier tool trained on open data [closed]

The broad question is: how are the licensing terms for a classifier that is trained with open annotated data (or manually annotated) data? I am trying to train a dependency parser for German text ...
1
vote
0answers
95 views

Can machine learning be used for non-numerical prediction?

I've started reading a machine learning book since a few days ago, and I've learned about how it can be used for classification/regression/etc. However, I am unsure if it will be able to handle the ...
1
vote
2answers
214 views

How to loosely couple chained algorithms

I have a search algorithm that is used in conjunction with a machine learning algorithm. I separated the two because I wanted to be able to swap out search algorithms on the fly. However, the coupling ...
15
votes
7answers
3k views

Machine learning applied to code development

My background is in mechanical engineering, so please forgive my ignorance to this area. I really enjoy programming and software development. Also, I recently took a free online Machine Learning (ML) ...
-5
votes
4answers
193 views

AI Language that doesn't release source code or can't be decompiled

I looked at using python for the AI in a security application for hobby-business but apparently you either release it as source code or it can be easily decompiled. Of the new machine learning ...
4
votes
2answers
276 views

What specific category / type of machine learning can be used to make better AI decisions in this board game?

I'm collaborating with a friend to, as a challenge, create a bot that can beat the best human players at a browser-based card / board game called Duelyst. It looks like this: It was my original plan ...
2
votes
1answer
143 views

Large Scale Machine Learning vs Traditional HPC Hardware

I've spent the last few days working with tensorflow for the first time as part of a natural language processing assignment for my degree. It's been interesting (fun isn't the right word) trying to ...
3
votes
1answer
427 views

Is Machine Learning a part of Data Science?

I am having trouble differentiating between Big Data vs Data Science. From what I've understood so far, both are buzzwords for the old statistics job. Where does machine learning fit into this?
-2
votes
1answer
830 views

Predicting financial transactions

I would like to build software to help folks with their personal finances. One area I would like to tackle is trying to predict future transactions based in past transactions. For instance you might ...
6
votes
2answers
1k views

Advanced Job Shop Scheduling Algorithm Question

I've looked into numerous solutions for the simple version of this problem, but I've found no solutions for advanced cases, short of sorting through all possible permutations. I don't know where to ...
1
vote
5answers
917 views

Machine learning without programming?

I am old to programming and very beginner to Machine Learning and what make me surprise is the defination as i typed in google i found this. Machine learning is a type of artificial intelligence (...
3
votes
2answers
2k views

Why do convolutional neural networks use so much memory?

I heard that one of the main problems applying neural style to high resolution images is the huge amount of memory that would use. Also I just configured a network using tiny-cnn This is my ...
1
vote
0answers
39 views

How do you feed sets of connected data elements to an artificial neural network?

I'm currently working on a neural network to try to predict movements of electricity prices in a big city with multiple power companies to choose from. I know from a friend in the industry that power ...
2
votes
1answer
459 views

Getting started with machine learning a zero sum game?

I have a simple zero sum, discrete, deterministic, complete information board game. I want to machine learn an evaluation function for an AI agent. Suppose each board state has ~20 identifiable ...
2
votes
0answers
614 views

Rotation logic for MNIST Handwritten Digit Dataset

I am currently applying some pre-processing to this dataset. Some of the digits are extremely rotated and I would like to know how others managed to get them 'upright'. I have implemented something ...
3
votes
1answer
2k views

Vector input for Artificial Neural Network?

My problem is fairly complex, so here is a similar, simplified example. Let's say you wanted to predict the Miles Per Gallon (fuel consumption) of a car, based on the following information: you have ...
2
votes
2answers
103 views

Create unique buckets for stream of entities based on constraints on the entity attributes

I have stream (magnitude 10s of millions) of entities, say Item which is modeled as below: class Item { String id; Double price; Double profitPercentage; Country originCountry; Country ...
0
votes
0answers
51 views

Is sparsity parameter really useful?

To make a sparse autoencoder,one way is add something to the function we want to minimize,which the further do average activity of hidden units to a sparsity parameter,the bigger your added thing will ...
1
vote
1answer
433 views

What type of “spam filter” algorithm will tokenize characters for non-exact matches?

I was having a look at a basic example of spam filtering using a logistic regression algorithm and an answer posted on this Stack Overflow question: https://stackoverflow.com/questions/29291263/mllib-...
0
votes
0answers
387 views

Decision making algorithm

I'm currently solving an optimisation problem of my own design, just to experiment and learn a little something. Here's the concept: I have a user that starts at home. The objective of this user is ...
1
vote
1answer
90 views

How supervised or unsupervised machine learning algorithms get better over new datasets

Using this Coursera's course about machine learning, I learned some things about supervised and unsupervised algorithms. And from Wikipedia I've read that machine learning is "to get better ...
8
votes
1answer
817 views

quantitatively comparing AST shapes

How could one compare the shape of abstract syntax trees of similar source code programs (C, C++, Go, or anything compiled with GCC...)? I guess that plagiarism detection on source code would use ...
2
votes
0answers
517 views

Predicting package delivery schedules

I'm trying to solve the following problem: A delivery man has N packages to deliver, already sorted. He starts the route at start_time, he works until end_time. I have historical data of his delivery ...
5
votes
1answer
206 views

Algorithm for predicting outcome based on parameters

I've never done anything with statistics, so I'm unsure of how to start with this problem that I need to solve for some software that I'm working on. Basically, there are three parameters An integer ...
3
votes
2answers
396 views

Clustering algorithm based on distance

So, I have a packaging center A. And I have n points scattered around A. Let's call them i1, i2 ... in. I have a maximum distance threshold, called D. My task is to break those n points into groups ...
3
votes
2answers
486 views

Dynamic gesture recognition with fingertip points

I have built a fairly robust program in c++ which tracks several points on a hand. It accurately quantifies the size of the palm, the center of the palm, and the fingertip locations among other hand ...
2
votes
1answer
92 views

To what values should you initialize the neurons and connection strengths in a neural network?

The values of all of the neurons in my neural network are initialized to 0 and the connection strengths between the neurons are set to randomly generated floats, between 0 and 1. I have seen other ...
3
votes
1answer
147 views

How can you write an activation function in a neural network to handle a layer architecture of arbitrary dimensions?

I am making a neural network in Clojure that can take an array of integers,and return a data structure representing the layers of a neural network: so (make-layers [1 4 5]) would evaluate to: [[0] ...
3
votes
1answer
123 views

Reward discounting in reinforcement learning

I've been reading the Sutton and Barto book and following David Silver's lectures on youtube. The basic principles make a lot of sense to me and I've been building a maze (an arbitrary grid where the ...
5
votes
1answer
9k views

What does it mean for an algorithm to converge?

I keep coming across this term when reading about reinforcement learning, for example in this sentence: If the problem is modelled with care, some Reinforcement Learning algorithms can converge to ...
0
votes
0answers
84 views

Will this data mining approach work? Is it a good idea?

I need to extract fields like the document number, date, and invoice amount from a bunch of .csv files, which I believe are referred to as "unstructured text." I have some labeled input files and will ...
1
vote
0answers
243 views

How is the event model of multinomial naive bayes algorithm right

The event model of multinomial NB is this: P(x1, x2...Xm | y=k) = P(x1 | =k) * P(x2 | y=k) * ...* P(xm | y=k), where x is i'th word in the document. Then we apply it to bag of words model. P = P(x1 |...
5
votes
1answer
369 views

How to access large amounts of data for machine learning in a microservices architecture

Imagine you are building a product recommendation algorithm for an eccommerce application which is built as a microservices architecture, this architecture having separate services for users and ...
1
vote
1answer
449 views

Recommending new products using k-means clusters?

I'm trying to figure out the best way to recommend images based on past classifications using k-means clusters. What I have done is mapped the RGB values of a set of images, performed a k-means ...