prospectr | R package : Misc . | Data Manipulation library
kandi X-RAY | prospectr Summary
kandi X-RAY | prospectr Summary
This version: 0.2.4 - mandarina - (this version fixes a bug in the read_nircal() function). prospectr is becoming more and more used in spectroscopic applications, which is evidenced by the number of scientific publications citing the package. This package is very useful for singal processing and chemometrics in general as it provides various utilities for pre--processing and sample selection of spectral data. While similar functions are available in other packages, like signal, the functions in this package works indifferently for data.frame, matrix and vector inputs. Besides, several functions are optimized for speed and use C++ code through the Rcpp and RcppArmadillo packages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of prospectr
prospectr Key Features
prospectr Examples and Code Snippets
@Manual{stevens2022prospectr,
title = {An introduction to the prospectr package},
author = {Antoine Stevens and Leornardo Ramirez-Lopez},
publication = {R package Vignette},
year = {2022},
note = {R package version 0.2.3},
}
Community Discussions
Trending Discussions on prospectr
QUESTION
ANSWER
Answered 2020-Oct-14 at 10:55You have too many Max-Pooling layers, the max pooling layer reduces the dimension of the inputted vector by factor of its parameter.
Try to reduce the pool_size parameters , or alternatively remove the last 2 max-pooling layers. A value you can try is pool_size=2 for all layers.
As for the parameters you should learn of the meaning of them: Here you can find an explanation of the convolution layer and max pooling layer parameters like filters , kernel size and pool size: Convolutional layer
The dropout layer is a regularization which maximize the effectiveness of the layer weights , every epoch it zeroes different percent (size of "rate" parameter) of the weights . the larger the rate - you have less overfitting but training time is longer. learn about it here: Dropout layer
The units is the size of the Fully Connected layer. Fully Connected layer
The input shape is a dimensions of your data, when the number of records does not count. In 1d vectors it is (N,C) when N is the vector length and C is number of channels you have, if you have 1 channel it is (N,1). In 2d vectors it is (Height,Width,Channels).
QUESTION
I would like to apply a Savitzky-Golay filter (prospectr package) to a dataset. However, all the examples available run the filter for only one sample (curve with a determined number of wavelengths). Is there anyway I can filter the data of more samples (70 samples) at once?
...ANSWER
Answered 2020-Aug-10 at 22:50Usually spectral data matrices are organized with observations (samples) in rows and (spectral) variables in columns. The savitzkyGolay function does work for multiple observations. A proper way to call the function for your data is:
QUESTION
I need to import multiple csv files each containing 2 columns - wavenumber and intensity, but no headers. Each file contains the same wavelengths. The code below imports the files as a list of dataframes, keeping the original column structure.
However, I would like to pivot_wide each file so that columns are individual wavenumbers and intensity is the value, but I have not seen anyone pivoting in a for loop.
Finally, I would like to construct a data table in which the pivoted spectral data is embedded in one variable. The aim is something similar to the NIRsoil data in the prospectr package, or the gasoline data in the pls package.
...ANSWER
Answered 2020-Jul-05 at 14:06We can make a toy example of the myfiles
data structure like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install prospectr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page