py27 windows tests (#199)

This commit is contained in:
Sebastian Raschka
2017-06-03 13:22:27 -04:00
committed by GitHub
parent 6bf27d7cb2
commit 982cf49d67
3 changed files with 15 additions and 15 deletions
+4 -2
View File
@@ -3,7 +3,9 @@ build: false
environment:
matrix:
- PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda36-x64
MINICONDA: C:/Miniconda36-x64
- PYTHON_VERSION: 2.7
MINICONDA: C:/Miniconda-x64
init:
- ECHO %PYTHON_VERSION% %MINICONDA%
@@ -19,4 +21,4 @@ install:
- pip install nose-exclude
test_script:
- nosetests -s -v --exclude-dir=mlxtend/tf_classifier --exclude-dir=mlxtend/tf_regressor --exclude-dir=mlxtend/tf_cluster --exclude-dir=mlxtend/plotting
- nosetests -s -v --exclude-dir=mlxtend/plotting
-11
View File
@@ -40,17 +40,6 @@ Sebastian Raschka 2014-2017
<br>
<hr>
## Recent changes
- Sequential Feature Selection algorithms: [SFS](http://rasbt.github.io/mlxtend/docs/feature_selection/sequential_forward_selection/), [SFFS](http://rasbt.github.io/mlxtend/docs/feature_selection/sequential_floating_forward_selection/), and [SFBS](http://rasbt.github.io/mlxtend/docs/feature_selection/sequential_floating_backward_selection/)
- [Neural Network / Multilayer Perceptron classifier](http://rasbt.github.io/mlxtend/docs/classifier/neuralnet_mlp/)
- [Ordinary least square regression](http://rasbt.github.io/mlxtend/docs/regression/linear_regression/) using different solvers (gradient and stochastic gradient descent, and the closed form solution)
<hr>
<br>
## Installing mlxtend
#### PyPI
+11 -2
View File
@@ -8,6 +8,7 @@ from mlxtend.utils import assert_raises
from mlxtend.utils import check_Xy
import numpy as np
import sys
import os
y = np.array([1, 2, 3, 4])
X = np.array([[1., 2.], [3., 4.], [5., 6.], [7., 8.]])
@@ -63,16 +64,24 @@ def test_invalid_dtype_y():
def test_invalid_dim_y():
if sys.version_info[:2] == (2, 7) and os.name == 'nt':
s = 'y must be a 1D array. Found (4L, 2L)'
else:
s = 'y must be a 1D array. Found (4, 2)'
assert_raises(ValueError,
'y must be a 1D array. Found (4, 2)',
s,
check_Xy,
X,
X.astype(np.integer))
def test_invalid_dim_X():
if sys.version_info[:2] == (2, 7) and os.name == 'nt':
s = 'X must be a 2D array. Found (4L,)'
else:
s = 'X must be a 2D array. Found (4,)'
assert_raises(ValueError,
'X must be a 2D array. Found (4,)',
s,
check_Xy,
y,
y)