Implementation questions about machine learning algorithms. General questions about machine learning should be posted to their specific communities.

learn more…| top users | synonyms|machine learning jobs

1
vote
0answers
15 views

Decision path for a Random Forest Classifier

Here is my code to run it in your environment, I am using RandomForestClassifier and I am trying to figure out the decision_path for a selected sample in the random forest classifierimport numpy as ...
0
votes
0answers
11 views

Tensorflow GPU installation error, Ubuntu

I am trying to install Tensorflow GPU, when executed this command,pip3 install --upgrade tensorflow-gpui get this error.Traceback (most recent call last):File "/usr/lib/python3/dist-packages/pip/...
0
votes
0answers
13 views

AI Algorithms and processes

1). What kind of AI/Machine learning algorithm and processes are need in order to develop a virtual fitness/personal training simulating the creation of custom workouts based on client parameters?2)....
0
votes
0answers
6 views

change a pcap file to a file containing KDD99 features

I want to change a pcap file into a similar-KDD99 file. As known, the .pcap file contains a lot of data features, however the famous data set KDD99 contains 41 features. So, Is there a tool or a way ...
0
votes
0answers
11 views

Sklearn: What is the equivalent of check_estimator for TransformerMixin?

I'm trying to create a custom feature extractor using FunctionTransformer for personal use. I'd like to make it as compliant with the scikit-learn API as possible to avoid warnings and errors down the ...
-2
votes
0answers
20 views

How can I apply convolution neural network on video? [on hold]

I have already used convolution neural network on images but now I want to apply on video. Any suggestions would be appreciated.
3
votes
1answer
70 views

Sorting a zipped list in a for loop

Here is my code if you want to run itimport numpy as npimport pandas as pdfrom sklearn.datasets import make_classificationfrom sklearn.ensemble import RandomForestClassifierfrom treeinterpreter ...
0
votes
0answers
9 views

How to make an image recognition deep net detect small differences

I am currently working on a machine learning project with Apache MXNet, and I am using the Inception V3 model (imagenet1k-inception-bn model on the MXNet model zoo).I am currently trying to train a ...
0
votes
1answer
24 views

Multilayer perceptron with sigmoid activation produces straight line on sin(2x) regression

I'm trying to approximate noisy data from the sin(2x) function using a multilayer perceptron:# Get datadatasets=gen_datasets()# Add noisedatasets["ysin_train"]=add_noise(datasets["ysin_train"]...
1
vote
1answer
15 views

Keras - Custom Metric producing different values in console vs. model.evaluate()

I am doing a neural network regression problem using Keras with a TensorFlow backend. I need a RMS Error value to determine my model's performance. Unfortunately this does not exist as a out-of-the-...
-1
votes
0answers
21 views

Spark Scala: How to get Integer type of outputs in StringIndexer instead of Any?

I need to use ALS algorithm, which requires Rating inputs.val ratings=indexedPurchases.rdd.map(row=> Rating(row.getAs[Integer]("BuyerIndex"), row.getAs[Integer]("ProductIndex"),...
-3
votes
0answers
10 views

how to plot affinity propogation for text cluster

I am trying to clustering the text based on the affinity propagation. I used the tfidf to vectorize the text.def tfidf_vectorizer(contents):""":return:"""vectorizer=...
0
votes
0answers
18 views

Debugging perceptron learning algorithm

I'm writing a perceptron learning algorithm on simulated data. However the program runs into infinite loop and weight tends to be very large. What should I do to debug my program? If you can point out ...
-1
votes
0answers
8 views

How to make classifier with dataset where there are colisions in class labels?

I have a labeled dataset with collisions in class labels: for example, for class label=35, class label=0 and class label=10 (and may be so on) batches of dataset are similar - I see that on ...
-4
votes
0answers
25 views

Best algorithm for Sentiment analysis? [on hold]

i have data set of customer feedback here i want to classify the customer by mood.

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,