photo

Stef


Active since 2017

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


how to check if the coefficients received from lassoglm are significant?
I performed a logistic regression with lasso penalization. Without lasso penalization using glmfit I receive the p-value in the ...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How can I test whether one classifier is significantly better?
I have a dataset consisting out of two classes. I try to classify the dataset using different classifiers. I want to test whethe...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


how to sort the rows of a matrix?
I have a matrix RG_table with two columns. I want to sort the rows of the matrix in descending order depending on column 2. Colu...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How to plot an example for overfitting with matlab? (example image in the description)
I want to plot something similar to these three graphs <https://cdn-images-1.medium.com/max/1600/1*JZbxrdzabrT33Yl-LrmShw.png...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How can I plot 2 rings in 3D?
I want to scatter 2 rings first in 2D and then in 3D. In 2D one circle should lie within the other. In 3D one circle should lie ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to compute the integral?
I have a few lines of code yielding an output value R. I want to compute several values R for different alphas. Then I want to c...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How to construct a binary logistic classifier?
I have a matrix X containing features and a vector y containing the labels. How can I perform logistic regression and compute th...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How to plot the occurency of an element?
I have a vector period, which considers 10 periods. I have another vector a, where some of the periods ocurr multiple times, oth...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How do I get the distance between the point and the hyperplane using libsvm?
I am using libsvm. I need to know, which observations are farest away from the hyperplane. libsvm returns me the "decision_value...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to optimize the parameters using libsvm?
Libsvm FAQ suggests this piece of code: bestcv = 0; for log2c = -1:3, for log2g = -4:1, cmd = ['-v 5 -c ', n...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How can I do crossvalidation and oversampling with an imbalanced dataset?
I have an imbalanced dataset, with very few observations belonging to category 1 and a lot belonging to category 0. Therefore I ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Avoid loop for equality
I have a variable h = 2:2:8 I want to have 4 output variables depending on the 4 differnt h A = y(s==h(1),:) As...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Store result of three nested for loops
I have a matrix X consisting out of variables of 50 period (loop 1). I want to do a forecast for different time horizons: 2,4,6,...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Index with for loop variable name and definition
I have a matrix A and avector y. I want to create a loop which names and defines them the matrix A from A1,...,A10. for i =...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Replace NAN in matrix with empty cells and reshape to matrix
I have a matrix X with several NAN values. I want replace the NAN with just blank cells, not zeros. Then I want to end up with a...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How to import a 50mb csv file?
I have a csv file of size 50mb. The data is numbers and strings. I tried to import it using the import button in matlab. Now the...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


What is the predicted score and how can I use it for the distance of the datapoint to the hyperplane?
I am coding a support vector machine. When I try this code [label,score] = predict(Model,X_test_best_feature); then I g...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


How can I compute the distance of any datapoint to the decision boundary of a SVM done with fitcsvm?
I want to compute the distance of every datapoint to the decision boundary. I build the SVM with fitcsvm with an rbf kernel.

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to store loop results where loop does not have whole numbers only
I want to store the loop results, however my loop is not only whole numbers. In the code you can see what I want to do, but it d...

meer dan 6 jaar ago | 2 answers | 0

2

answers

Question


Repmat a vector n times where n is not a whole number
I have a vector y consisting out of 10 elements. I want have a for loop, where I repmat the vector y to a new vector. However re...

meer dan 6 jaar ago | 2 answers | 0

2

answers

Question


How can I check if a condition holds?
I want to find the elements where the following condition holds: 0<x and y=1. x and y are arrays. How can I find the rows w...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to sum elements in a matrix rowwise for specific columns only?
I have a matrix X, consisting out of 100 rows and 10 columns. I want to sum up columns 7 to 10 to one single number, yielding a ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Support Vector Machine: Feature selection with sequentialfs()
I want to programme a support vector machine. I have 60 features. Using the function sequentialfs() it goes either forward or ba...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


Randperm same sequence each time you run the code
Is there a possibility to have each time the same random permutation when you run the code to make results comparable? ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Count rows > target value
I have a matrix A with observations (only two in the example) in the rows and features (five in the example) in the columns. I w...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to get the opposite elements of a vector specified by an index?
I have a variable s picking 70 random numbers from 0 to 100. Now I want to have all 30 elements of the vector a, which are not i...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How to use Monte Carlo Simulation in a linear regression?
I have a linear regression model with a lagged dependet variable: y_new=beta1+beta2*x+u n=4; %sample size u=normrnd(0,1,...

bijna 7 jaar ago | 1 answer | 0

1

answer

Question


Monte Carlo simulation of a linear regression model with a lagged dependet variable
I have a linear regression model with a lagged dependet variable: y_t=beta_0 + beta_1 * y_{t-1} + u_t The initial starting poi...

bijna 7 jaar ago | 0 answers | 0

0

answers

Question


How to use just one output out of a function with several outputs in an equation?
I have a function with three outputs depending on x. I want to use one of these three say B(x) in an equation: function [ A...

ongeveer 7 jaar ago | 1 answer | 0

1

answer