Community Profile

# Stef

2017 이후 활성

배지보기

#### Content Feed

보기 기준

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 0 | 0

### 0

답변

질문

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.

3년 이하 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이하 전 | 답변 수: 2 | 0

### 2

답변

질문

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

3년 이하 전 | 답변 수: 2 | 0

### 2

답변

질문

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

약 3년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 3년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 3년 전 | 답변 수: 0 | 0

### 0

답변

질문

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

약 3년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 3년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 3년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이상 전 | 답변 수: 1 | 0

### 1

답변

질문

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

3년 이상 전 | 답변 수: 0 | 0

### 0

답변

질문

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

3년 이상 전 | 답변 수: 1 | 0

답변