Questions tagged [pls]

Partial Least Squares regression is a statistical method used to find the fundamental relations between two matrices.

84 questions
0
votes
1 answer

How to use lapply with get.confusion_matrix() in R?

I am performing a PLS-DA analysis in R using the mixOmics package. I have one binary Y variable (presence or absence of wetland) and 21 continuous predictor variables (X) with values ranging from 1 to 100. I have made the model with the…
Lies
  • 71
  • 9
0
votes
1 answer

How to get the confidence level of detectMultiScale in "Python" OpenCV?

I was working on my research and currently stuck on this. I can't get the confidence level AT ALL. I've tried many commands, such as: outputRejectLevels = "levelWeights" outputRejectLevels = "objects" outputRejectLevels =…
Ted Lu
  • 35
  • 1
  • 10
0
votes
1 answer

SEM PLS on R - plspm does not install

I need to run SEM (with PLS) analysis, and was provided script that is used the plspm package. I tried to install but it says it's no longer available for current R update. Warning in install.packages : package ‘plspm’ is not available (for R…
H.Cheung
  • 855
  • 5
  • 12
0
votes
1 answer

Difference between fitted values and cross validation values from pls model in r

I only have a small dataset of 30 samples, so I only have a training data set but no test set. So I want to use cross-validation to assess the model. I have run pls models in r using cross-validation and LOO. The mvr output has the fitted values and…
0
votes
1 answer

Python PLSRegression : obtaining the latent variables scores using loadings

In sklearn.cross_decomposition.PLSRegression, we can obtain the latent variables scores from the X array using x_scores_. I would like to extract the loadings to calculate the latent variables scores for a new array W. Intuitively, what I whould do…
Falco
  • 183
  • 2
  • 16
0
votes
1 answer

Python error in GridSearchCV: "Only one class present in y_true. ROC AUC score is not defined in that case."

I am using GridSearchCV to find the best parameters (number of components) of a PLS-DA model (partial least squares discriminant analysis). y_train is a np array that looks like [1111....0000], so there are two classes (0 and 1). The classes are…
Falco
  • 183
  • 2
  • 16
0
votes
1 answer

How to install mixOmics packages in R version 4.0.0?

I have tried install package mixOmics but failed. The output at console below: install.packages("mixOmics") Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0’ (as ‘lib’ is unspecified) Warning in install.packages : …
0
votes
1 answer

Undefined reference to (readline, pthread_create, pthread_detach), makefile not including libraries

This may be a simple answer but I am trying to compile code for a simple User level file system. I am running my code on a windows Ubuntu subsystem. I have all the lpthread and lreadline libraries updated and installed and I still get the undefined…
kupinah
  • 3
  • 2
0
votes
1 answer

Error in running Python code for PLSR modelling

I am trying to develop model using PLSR (Partial Least Squares Regression) in Python3 using code provided https://github.com/pgbrodrick/ensemblePLSR. Sample data is also provided. When I try to run code, it gives me error >>> python3…
MGD
  • 1
  • 6
0
votes
1 answer

How to calculate corrleation of a independent variable(x) on multiple dependent variables (y1 and y2)?

Let's say we have 10 independent variable x1,x2,x3,...xn which all are categorical with same levels 0,1,2 (eg., 0 = no color , 1 = Red, 2 = Green) and you have two dependent(response) variables (eg., y1 = pant length in m and y2 = waist size in m).…
0
votes
1 answer

Plot 3D in R: Classical spectral gasoline in function of octane

Load a data set comprising spectral intensities of 60 samples of gasoline at 401 wavelengths, and their octane ratings in pls package. In my example: library(pls) #Data set data(gasoline) 'data.frame': 60 obs. of 2 variables: $ octane: num …
Leprechault
  • 1,531
  • 12
  • 28
0
votes
1 answer

Using Predefined Splits in PCR function R PLS package

In order to to ensure a good population representation I have created custom validation sets from my training data. However, I am not sure how I interface this in PCR in R I have tried to add a list in the segments argument with each index similar…
0
votes
1 answer

PLS in R: Model training and predicting values with two Y variables

I' ve like to model training and predicting values using PLS model for more than one Y variables, but I have some problems when I try this approach, in my code below: #First simulate some data set.seed(123) bands=20 data <-…
Leprechault
  • 1,531
  • 12
  • 28
0
votes
1 answer

Http source in pls file not working when I try to stream audio through icecast using liquidsoap

I'm using liquidsoap as source client for icecast. I try running http source from pls file, but not working. When I use input.http() function, everything is ok. What to do to read the http source from the pls file ? What's wrong with my…
Anton Bohomaz
  • 99
  • 1
  • 6
0
votes
0 answers

How to make simple slide gallery using css?

Hello everyone. I'm working on my first simple slide gallery, I've done much, but there is a problem which I do not understand. The pictures are cut in a size I declare, not in a full view. Any suggestions what should I change or something to add? …
oldo4
  • 15
  • 5