Community Profile

photo

Stef


Aktiv seit 2017

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


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 ...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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 ...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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,...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 =...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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.

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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? ...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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,...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort