Skip to content

Commit

Permalink
Add transformer base class
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored and vigsterkr committed Jun 8, 2018
1 parent 1878190 commit a549768
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/shogun/transformer/Transformer.h
@@ -0,0 +1,47 @@
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Wuwei Lin
*/

#ifndef TRANSFORMER_H_
#define TRANSFORMER_H_

#include <shogun/lib/config.h>

#include <shogun/base/SGObject.h>
#include <shogun/features/Features.h>
#include <shogun/lib/common.h>

namespace shogun
{

/** @brief class Transformer used to transform data
*
*/
class CTransformer : public CSGObject
{
public:
/** constructor */
CTransformer() : CSGObject()
{
}

/** destructor */
virtual ~CTransformer()
{
}

/** get name */
virtual const char* get_name() const
{
return "Transformer";
}

/** Fit transformer to features */
virtual void fit(CFeatures* features)
{
}
};
}
#endif /* TRANSFORMER_H_ */

0 comments on commit a549768

Please sign in to comment.