Questions tagged [linear-discriminant]
103 questions
0
votes
0 answers
My semi-supervised linear discriminant analysis does not work at all
I am working on LDA (linear discriminant analysis), and you can refer to http://www.ccs.neu.edu/home/vip/teach/MLcourse/5_features_dimensions/lecture_notes/LDA/LDA.pdf .
My idea about semi-supervised LDA: I can use labeled data $X\in R^{d\times…

olivia
- 381
- 3
- 14
0
votes
2 answers
Possible to force logistic regression or other classifier through specific probability?
I have a data set with a binary variable[Yes/No] and a continuous variable (X). I'm trying to make a model to classify [Yes/No] X.
From my data set, when X = 0.5, 48% of the observations are Yes. However, I know the true probability for Yes should…

MLEN
- 2,162
- 2
- 20
- 36
0
votes
1 answer
How can I Plot the decision boundary of Fisher LDA in R?
I'm new to R and I have been trying to create Fisher LDA, but i'm having tough time getting around vectors and metrics in R. if some one could tell am I doing it right because i'm getting this error when i try to plot the decision boundary
Error in…

Muhammed Eltabakh
- 375
- 1
- 10
- 24
0
votes
1 answer
Incorrect number of dimensions when switching between 2 group and more than 2 group LDA in Shiny
I have been teaching myself how to make shiny apps to include wit research articles to make methods more available to practitioners. I am using shiny to make a web app that does discriminant function analysis on a certain set of variables. The…

Michael Kenyhercz
- 11
- 1
0
votes
1 answer
How could I reverse the effect of kernel fisher?
I have used Kernel fisher's discriminant analysis in my project and it worked just great. but my problem arises from the fact that when I mapped my data set using kernel functions, all data and also all eigenvalues and eigenvectors are in that space…

siii fsxa
- 45
- 5
0
votes
0 answers
How to train a SVM by using LDA
I am using C++ with OpenCV 3.0.
I have a training data matrix with features that I have extracted of some images (trainData). The size of this matrix is 2750x1104 because I have 2750 images (positive and negative) with 1104 features each. I have…

Jose L
- 322
- 3
- 13
0
votes
1 answer
How to exclude data with 0 variance in matlab implementation of Linear discriminant analysis
I am using Matlab to classify data using LDA.
mdl = fitcdiscr(dbimgs1,indx,'DiscrimType','linear');
C=predict(mdl,testimgs1);
I get the following error:
Predictor x741 has zero variance. Either exclude this predictor or set 'discrimType' to…
user6220686
-1
votes
1 answer
Can i select 100 features using LDA whne there are only 2 classes?
In Python, can I get 100 best features out of 200k by performing Linear Discriminant Analysis on data having 2 classes?

crazy_stupid
- 1
- 3
-1
votes
1 answer
Python error while using the LDA in Sklearn
I'm trying to implement the LinearDiscriminantAnalysis from sklearn for that here is what I've done so far:
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
import numpy as np
import pandas as pd
# Reading csv file
training_file…

Engine
- 5,360
- 18
- 84
- 162
-1
votes
1 answer
How many labels are acceptable before using regression over classification
I have a problem where I'm trying to use supervised learning in python. I have a series of x,y coordinates which i know belong to a label in one data set. In the other i have only the x,y coordinates. I am going to use one set to train the other, my…

mapping dom
- 1,737
- 4
- 27
- 50
-2
votes
1 answer
best value for fixed seed of RandStream
Is there any rule of thumb as what to select for fixed seed in RandStream in MATLAB? I am using it for randomly picking samples in 10 split linear discriminant analysis and depending on what I select for seed, I get quite diffent LDA_CCR_mean values…

Mona Jalal
- 34,860
- 64
- 239
- 408
-2
votes
1 answer
a*(x^2) + b*x +c equation in r
I've been given this equation, and I'm asked to create a program where the solutions for
a*(x^2) + b*x +c = 0
are given like this:
1) if D > 0, 2 solutions are:
x1 = (-b -sqrt(D))/2a and x2= (-b+ sqrt(D))/2a
2)if D = 0 , 1 'double' solution':
x1 =…

gkal
- 3
- 1
- 3
-5
votes
1 answer
Which is a good choice LDA or PCA for feature reduction in the supervised learning model?
PCA -> Unsupervised Model or use for supervise learning too
LDA -> supervise Model
Both used for the feature reduction.
Which is batter LDA or PCA for supervising learning feature reduction and why?
Data-set: It is very famous data-set of wine to…

Sohaib Aslam
- 1,245
- 17
- 27