Learn R Programming

less (version 0.1.0)

SklearnEstimator: SklearnEstimator

Description

A dummy base R6 class that includes fit, predict functions for estimators

Arguments

Value

R6 Class of SklearnEstimator

Super class

less::BaseEstimator -> SklearnEstimator

Methods

Inherited methods


Method fit()

Dummy fit function

Usage

SklearnEstimator$fit()

Examples

sklearn <- SklearnEstimator$new()
sklearn$fit()


Method predict()

Dummy predict function

Usage

SklearnEstimator$predict()

Examples

sklearn$predict()


Method get_type()

Auxiliary function returning the type of the class e.g 'estimator'

Usage

SklearnEstimator$get_type()

Examples

sklearn$get_type()


Method get_isFitted()

Auxiliary function returning the isFitted flag

Usage

SklearnEstimator$get_isFitted()

Examples

sklearn$get_isFitted()


Method clone()

The objects of this class are cloneable with this method.

Usage

SklearnEstimator$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code

## ------------------------------------------------
## Method `SklearnEstimator$fit`
## ------------------------------------------------

sklearn <- SklearnEstimator$new()
sklearn$fit()

## ------------------------------------------------
## Method `SklearnEstimator$predict`
## ------------------------------------------------

sklearn$predict()

## ------------------------------------------------
## Method `SklearnEstimator$get_type`
## ------------------------------------------------

sklearn$get_type()

## ------------------------------------------------
## Method `SklearnEstimator$get_isFitted`
## ------------------------------------------------

sklearn$get_isFitted()

Run the code above in your browser using DataLab