Skip to content

Commit bca8170

Browse files
Add files via upload
1 parent aa1db95 commit bca8170

File tree

10 files changed

+69
-1
lines changed

10 files changed

+69
-1
lines changed

PKG-INFO

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Metadata-Version: 1.0
2+
Name: linalgnorm
3+
Version: 1.0
4+
Summary: This is a sample python package for encapsulating custom tranforms from scikit-learn into Watson Machine Learning
5+
Home-page: https://github.com/vnderlev/sklearn_tansforms/
6+
Author: Vanderlei Munhoz
7+
Author-email: [email protected]
8+
License: BSD
9+
Description: UNKNOWN
10+
Platform: UNKNOWN

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# wml_sklearn_transform
1+
# My custom sklearn transform
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# All sklearn Transforms must have the `transform` and `fit` methods
2+
# You can declare several custom transforms (as different classes) in
3+
# this file
4+
5+
6+
class DropColumns(object):
7+
def __init__(self, columns):
8+
self.columns = columns
9+
10+
def transform(self, x):
11+
return x.copy().drop(labels=self.columns, axis='columns')
12+
13+
def fit(self, df, y=None):
14+
return self
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Metadata-Version: 1.0
2+
Name: sklearn_tansforms
3+
Version: 1.0
4+
Summary: This is a sample python package for encapsulating custom tranforms from scikit-learn into Watson Machine Learning
5+
Home-page: https://github.com/vnderlev/sklearn_tansforms/
6+
Author: Vanderlei Munhoz
7+
Author-email: [email protected]
8+
License: IBM
9+
Description: UNKNOWN
10+
Platform: UNKNOWN
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
setup.py
2+
linalg_norm/__init__.py
3+
linalg_norm/sklearn_transformers.py
4+
linalgnorm.egg-info/PKG-INFO
5+
linalgnorm.egg-info/SOURCES.txt
6+
linalgnorm.egg-info/dependency_links.txt
7+
linalgnorm.egg-info/not-zip-safe
8+
linalgnorm.egg-info/top_level.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
my_custom_sklearn_transforms

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[egg_info]
2+
tag_build =
3+
tag_date = 0
4+
tag_svn_revision = 0

setup.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from setuptools import setup
2+
3+
4+
setup(
5+
name='my_custom_sklearn_transforms',
6+
version='1.0',
7+
description='''
8+
This is a sample python package for encapsulating custom
9+
tranforms from scikit-learn into Watson Machine Learning
10+
''',
11+
url='https://github.com/vnderlev/sklearn_tansforms/',
12+
author='Vanderlei Munhoz',
13+
author_email='[email protected]',
14+
license='BSD',
15+
packages=[
16+
'my_custom_sklearn_transforms'
17+
],
18+
zip_safe=False
19+
)

0 commit comments

Comments
 (0)