File: constant.py

package info (click to toggle)
orange3 3.40.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,908 kB
  • sloc: python: 162,745; ansic: 622; makefile: 322; sh: 93; cpp: 77
file content (9 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from Orange.classification import MajorityLearner
from Orange.modelling import Fitter
from Orange.regression import MeanLearner

__all__ = ['ConstantLearner']


class ConstantLearner(Fitter):
    __fits__ = {'classification': MajorityLearner, 'regression': MeanLearner}