singlepp
A C++ library for cell type classification
Loading...
Searching...
No Matches
train_single.hpp File Reference

Train a classifier from a single reference. More...

Go to the source code of this file.

Classes

struct  singlepp::TrainSingleOptions
 Options for train_single() and friends. More...
 
class  singlepp::TrainedSingle< Index_, Float_ >
 Classifier trained from a single reference. More...
 

Namespaces

namespace  singlepp
 Cell type classification using the SingleR algorithm in C++.
 

Functions

template<typename Float_ = double, typename Value_ , typename Index_ , typename Label_ >
TrainedSingle< Index_, Float_ > singlepp::train_single (const tatami::Matrix< Value_, Index_ > &ref, const Label_ *labels, Markers< Index_ > markers, const TrainSingleOptions &options)
 
template<typename Float_ = double, typename Index_ , typename Value_ , typename Label_ >
TrainedSingle< Index_, Float_ > singlepp::train_single (Index_ test_nrow, const Intersection< Index_ > &intersection, const tatami::Matrix< Value_, Index_ > &ref, const Label_ *labels, Markers< Index_ > markers, std::vector< Index_ > *ref_subset, const TrainSingleOptions &options)
 
template<typename Float_ = double, typename Index_ , typename Id_ , typename Value_ , typename Label_ >
TrainedSingle< Index_, Float_ > singlepp::train_single (Index_ test_nrow, const Id_ *test_id, const tatami::Matrix< Value_, Index_ > &ref, const Id_ *ref_id, const Label_ *labels, Markers< Index_ > markers, std::vector< Index_ > *ref_subset, const TrainSingleOptions &options)
 

Detailed Description

Train a classifier from a single reference.