Skip to content

Commit a5acd67

Browse files
committed
KM
1 parent ebe234c commit a5acd67

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

test/test_quick.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from toolkit.machine_learning import quickregression
2+
3+
from sklearn.linear_model import LinearRegression
4+
import pytest
5+
6+
"""
7+
import numpy as np
8+
from sklearn.model_selection import train_test_split
9+
import pandas as pd
10+
from sklearn.datasets import load_boston
11+
12+
boston = load_boston()
13+
X_train, X_test, y_train, y_test = train_test_split(boston.data, boston.target, test_size=0.2, random_state=17)
14+
"""
15+
16+
def test_quickregression():
17+
assert quickregression(LinearRegression) >= 0

test/test_word.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from toolkit.plot import wordcloudviz
2+
3+
import pytest
4+
import matplotlib.pyplot as plt
5+
from wordcloud import WordCloud
6+
import pandas as pd
7+
8+
data = {'column': ['hola mundo', 'esto es una prueba', 'pytest es un engorro', 'hello world', 'tralala']}
9+
df = pd.DataFrame(data)
10+
11+
def test_wordcloudviz():
12+
wordcloudviz(df['column'])

0 commit comments

Comments
 (0)