Skip to content

Instantly share code, notes, and snippets.

View jergosh's full-sized avatar

Greg Slodkowicz jergosh

  • MRC Laboratory of Molecular Biology
  • Cambridge
View GitHub Profile
#!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2019] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
class SklearnWrapper(object):
def __init__(self, clf, params={}):
self.clf = clf(**params)
def __getattr__(self, name):
return self.clf.__getattribute__(name)