Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. Don’t use both the [matlab] and [octave] tags, unless the question is explicitly about the similarities or differences between the two. When using this tag, please mention the MATLAB release you're working with (e.g. R2017a).

Filter by
Sorted by
Tagged with
-2
votes
0answers
8 views

neural network for different class input [closed]

I am new in neural network. I wonder how can i add two different parameter in inputs. For example, I want to train a feedforward network using voltage and current values. How can i do it?
0
votes
0answers
28 views

Policy Gradient with Baseline Reward Oscillation (MATLAB Reinforcement Learning Toolbox)

I'm trying to train a Policy Gradient Agent with Baseline for my RL research. I'm using the in-built RL toolbox from MATLAB (https://www.mathworks.com/help/reinforcement-learning/ug/pg-agents.html) ...
0
votes
0answers
14 views

Can a convolutional neural network or an autoencoder deal with an input of complex values (complex numbers instead of real numbers)?

I saw in a model that they did consider the complex numbers as 2-D numbers before using Convolutional Neural Networks. However for the autoencoder, as much as i know, it can not deal with 3D, Am i ...
0
votes
1answer
15 views

Why normalize function has a different result on a matrix vs single value?

I have a matrix like: B=[ 1.5035; 1.5728; 1.6485; 1.5369; 1.5467; 1.572; 1.5374; 1.787; 1.5825; 1.6905]; Using normalize function like normalize(B,'range') ...
1
vote
0answers
16 views

Embedding git commit into the resulting data

Our pipeline works something like that: Collect bunch of raw data (10-100 GB) from microscope Process data using MATLAB scripts Change few parameters based on raw data, as well as add new features to ...
0
votes
0answers
15 views

Is it possible to convert Neural Network code in Python into Matlab code?

I want to convert the code written in Python into Matlab code. May I know is it possible to do that. Share the available ways or methods to do the conversion. May I know is there any Online ...
0
votes
0answers
12 views

Matlab - Financial Modeling, Linear Regression with Prior

Am trying to implement this equation from the book Doing Data Science Straight Talk from the frontline, In chapter 6, page 161, equation below: From what i can tell it is pretty much an enchanced ...
-1
votes
1answer
31 views

kmean clustering

I am having a problem in Matlab. I would like to use kmeans clustering and then get the value and index of the centroid. For example, if there is an $5*5$ array, we do kmeans clustering where k=2 and ...
2
votes
1answer
78 views

Hyperparameter optimization performance comparison

I have used Bayesian optimization for hyperparameter tuning in a machine learning model. What is the best way to compare the performance of network with and without Bayesian optimization? I found some ...
2
votes
0answers
63 views

Using LSTM to forecast vehicle position - multivariate time series - Matlab

I am trying to train an LSTM model on Matlab to forecast the position of a vehicle when driving around a roundabout. My main concern right now is that my dataset consists of 4 features (X position, Y ...
3
votes
1answer
98 views

How to find the various matrix sizes in designing a CNN

I am trying to understand CNN especially the maths and working mechanism using Matlab as the coding language. I have few confusion regarding the concept and the associated programming and will be ...
0
votes
0answers
15 views

How to use ttest on kfold data test results?

I used K-fold and partition my dataset to 10 sets of train and test after that put the result for every folds on a table, now I have 10 sets of results. After it get average of every column(my ...
1
vote
0answers
152 views

Tensorflow simple neural network has very bad performance in regression (curve fitting) problem

I'm trying to implement a very simple one layered MLP for a toy regression problem with one variable (dimension = 1) and one target (dimension = 1). It's a simple curve fitting problem with zero noise....
0
votes
1answer
24 views

Is it possible to change test and train data size when using crossvalind function with Kfold param?

I was looking at MATLAB Help and want to work with "crossvalind" function. It would two parameters that you can use it. If you use "HoldOut" you can define partition size of test and train data set ...
1
vote
1answer
33 views

Is there a common strategy to measure if a difference-significance of two areas under two ROC curves

I conduct sound detection experiments with mice. I have a stimulus sound and a "noise" sound that shoukd be ignored. I want to measure how well the mouse ignors the noise (with respect to, say, ...
0
votes
0answers
20 views

Why does gradient descent fail training a network for predicting times table?

Cross posted I am training a feedforwardnet with gradient descent traingd as backpropagation algorithm to predict times table. ...
1
vote
0answers
26 views

Is kFoldLoss simply the average classification error?

I'm using a kNN classifier in MATLAB to classify ECG signals, with 5 fold cross validation I get almost 97% accuracy. However, I'm not entirely sure if this is truly the accuracy value. By default the ...
1
vote
1answer
23 views

Why GA convergence curves continue as two parallel lines?

I'm working on a optimization problem and using GA algorithm (in MATLAB, ga function). As you know MATLAB plots GA result with two curves, one for the best values and other to show the mean values ...
0
votes
1answer
34 views

What method is recommended after outliers removal?

I have a data of mice reaction times. In every session, there are some trials in which the mouse "decides of a break" and responds after a long time to these specific trials. I was thinking of ...
1
vote
0answers
17 views

Octave or python for implementing Machine Learning [closed]

When is the need to learn octave or Mat Lab for Machine Learning? Are these required if you are proficient in python?
0
votes
0answers
15 views

How to generate synthetic datasets using randi and rand?

I have real datasets of 3 years. Now, I want to generate more datasets based on the behavior of these datasets to test my algorithm. Is there any way to generate synthetic dataset using ...
0
votes
0answers
25 views

Why do the training curve fall sharp suddenly?

I am training a CNN classifier on a binary balanced dataset. The dataset has 4500 numbers of tweet data along with the class of the tweet. During training, I am applying, GLOVE embedding of 300 ...
0
votes
1answer
100 views

Why is my Python Altair chart printing a blank line?

Wondering if anyone can help me understand why python altair chart is not printing... I’m only seeing this when I run the code: It literally isn’t outputting anything. This is what my chart looks ...
0
votes
0answers
41 views

Local Interpretable Model-Agnostic Explanations (LIME) implementation on MATLAB

Do you know if there's a MATLAB implementation of the LIME framework, by Marco Ribeiro et al.? Specifically, i'm referring to this work LIME by Marco Ribeiro et al. I have seen the author have a ...
0
votes
0answers
55 views

Why FP-Growth is slower than Apriori?

My project is about Data mining (in MATLAB) and want to use Apriori and FP-GRowth to extract rules (Associate Rule Mining). I read in somewhere on the internet, FP-Growth should be faster than Apriori ...
1
vote
1answer
43 views

Feature selection method explanation

In the context of feature relevance, I am trying to understand the meaning of the correlation method for feature selection. Can somebody please explain if the following results of the correlation ...
0
votes
0answers
22 views

How to generate artificial datasets in MATLAB based on behavior of real datasets?

To understand: Let's consider a scenario. I have real datasets of 2 buildings showing different behaviors of occupants. Now to expand the analysis for multiple buildings, I want to generate simulated ...
0
votes
0answers
13 views

How to handle variables with text and number?

This is a post with two related questions in one. The first question is: What is the correct procedure when I have variables with different kind of information? Imagine you have a column which has ...
0
votes
0answers
69 views

How to Compute Logistic Regression Cost Function?

I'm using MATLAB to calculate the Logistic Regression Cost Function, and I don't get the expected output when I test my code. My steps all seem to be logically correct. Can anyone please help me fix ...
0
votes
0answers
22 views

How can solve data imbalance issue in MATLAB for a PatternNet?

I have built a Pattern recognition NN in MATLAB. I have two datasets, one for training and one for testing each of 4500 samples. The number of classes is 3. Out of the 3 classes, class #1 has approx ...
0
votes
1answer
34 views

Modelling in python and scoring in MATLAB?

I have model objects either pickled object or H2O POJO. Is it possible to call those objects and do the scoring in MATLAB?
0
votes
0answers
65 views

How to implement loss function for CNN-SVM implementation

I am using Matlab R2018b and am trying to infuse svm classifier within CNN. My plan is to use CNN only as a feature extractor and use SVM as the classifier. I know people have already implemented it a ...
1
vote
1answer
288 views

What should I master better for professional data science in economics and finance? [closed]

First, excuse me for the noob and long question which is probably doesn’t even belong to here, I know there are several question been answered like this out there, but I think this is going to be up-...
1
vote
1answer
45 views

How to store a trained Random Forest model in python or matlab as a matrix

Is it possible to store a random forest model in python (or matlab). Then use that trained model in a C program? I am trying to do this because I am making a myoelectric prosthetic, and you can only ...
0
votes
0answers
22 views

how to read all my audio file from one directory and store the outputs for all the files in one variable (matrix)

I would like to run the program over all the samples of audio file and store the output in a single variable. For example, if my folder is "audio" inside that I have 10 audio files (...
1
vote
2answers
44 views

Finding roots of a non linear expression when multiplied with a linear expression

Here is a simple polynomial equation: b^2 + 2b + 1 = 0 I could easily solve this as: ...
0
votes
0answers
34 views

Implementation of Layer-wise relevant propagation in MATLAB from scratch

I'm having serious issues with the implementation of the LRP algorithm for neural networks in MATLAB. The challenge is to implement the equations correctly. I'm trying to implement the deep-Taylor $\...
0
votes
0answers
11 views

Error using imread function in matlab code

I was doing some sort of speech recognition pattern for recognition of sound but I stuck at imread error in matlab, any advice what to change in picture below you can find code and error. Code Error ...
1
vote
0answers
20 views

How to develop this type of neural network? [closed]

I was given this task to develop, this type of neural network but I never done speech recognition and that type of recognition in Matlab, so could anyone please help and give some help about this task....
0
votes
2answers
143 views

Shouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?

I'm exploring autoencoders for the first time. I'm using the Matlab neural networks toolbox. I have created a synthetic dataset consisting of points in 2D space plus some noise. My idea was to ...
0
votes
0answers
55 views

Implementing the simplest CNN, how to choose the first conv layer?

I'm working on a College assignment and I choose to implement an image classifier with Convolutional Neural Network using Matlab, I based this idea on this tutorials: How Convolutional Neural Network ...
1
vote
0answers
42 views

UnderBagging Testing in Matlab

I used UnderBagging for an imbalanced dataset with 45700 observation with 20 fetures. 45000 observations are 1 and 700 are 0. I used UnderBagging for classifier C ( for example for Decision Tree). I ...
0
votes
1answer
26 views

What's the correct form of use the real coded genetic algorithm?

i'm new with the ga and i can't found specific info about the real coded ga, i want to do an antennas array optimization by using the real values of antennas position , phase and amplitude, but in my ...
0
votes
1answer
71 views

How to find which features have been selected by PCA algorithm?

I used PCA function in MATLAB to decrease features on my data set. By this code I can reduce features from 12 to 8(as an example). It works good but my question is that how can I found with feature ...
0
votes
1answer
31 views

Does PCA decrease the feature on my Data set or just decrease the dimension?

I'm new in AI and sorry if my question is simple. I have a data set and want to use PCA to decrease the feature but after some research on the internet I'm confused about decreasing dimensions and ...
0
votes
2answers
47 views

Linear regression incorrect prediction using Matlab

In the plot below the red crossed line is the actual curve and the crossed blue line is the predicted curve. I am using least squares for linear prediction. I have used 1:79 examples in training and ...
4
votes
1answer
306 views

Training a classifier when some of the features are unknown

I am training a classifier in Matlab with a dataset that I created. Unfortunately some of the features in the dataset were not recorded. I currently have the unknown features set as -99999. So, for ...
1
vote
3answers
95 views

Why are pandas/R/etc so common in a data scientist or analyst's workflow when one can resort to UDFs in an RDBMS?

It seems common for an analyst to have this workflow when using an RDBMS: use SQL to get a subset of data from the database, export it or use a connector, and then apply a data mining / model ...
0
votes
1answer
464 views

Advice on transitioning from Andrew Ng's Stanford Coursera Machine Learning (in MATLAB) into Python?

I'm currently finishing up Andrew Ng's Coursera course, taught in MATLAB/Octave, but I'm looking to code in Python. The course is an introduction into how some algorithms work from scratch. These ...
1
vote
1answer
128 views

Tuning C hyper parameter in Soft Margin SVM in Matlab

How to tune the C 'BoxConstraint' hyperparameter in soft margin SVM to get the best optimal value?