Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper interface #314

Merged
merged 6 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/GridSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @package Rubix/ML
* @author Andrew DalPino
*/
class GridSearch implements Estimator, Learner, Parallel, Verbose, Persistable
class GridSearch implements Wrapper, Learner, Parallel, Verbose, Persistable
{
use AutotrackRevisions, Multiprocessing, LoggerAware;

Expand Down
2 changes: 1 addition & 1 deletion src/PersistentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @package Rubix/ML
* @author Andrew DalPino
*/
class PersistentModel implements Estimator, Learner, Probabilistic, Scoring
class PersistentModel implements Wrapper, Learner, Probabilistic, Scoring
{
/**
* The persistable base learner.
Expand Down
2 changes: 1 addition & 1 deletion src/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @package Rubix/ML
* @author Andrew DalPino
*/
class Pipeline implements Online, Probabilistic, Scoring, Persistable
class Pipeline implements Online, Probabilistic, Scoring, Persistable, Wrapper
{
use AutotrackRevisions;

Expand Down
20 changes: 20 additions & 0 deletions src/Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Rubix\ML;

/**
* Wrapper
*
* @category Machine Learning
* @package Rubix/ML
* @author Andrew DalPino
ElGigi marked this conversation as resolved.
Show resolved Hide resolved
*/
interface Wrapper extends Estimator
ElGigi marked this conversation as resolved.
Show resolved Hide resolved
{
/**
* Return the base estimator instance.
*
* @return Estimator
*/
public function base(): Estimator;
}
Loading