Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 271)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955
Traceback (most recent call last):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 43, in <module>
    neigh.fit(X1, y)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\base.py", line 765, in fit
    X, y = check_X_y(X, y, "csr", multi_output=True)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 576, in check_X_y
    dtype=None)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 462, in check_array
    context))
ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 253)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9545
Traceback (most recent call last):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 43, in <module>
    neigh.fit(X1, y)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\base.py", line 765, in fit
    X, y = check_X_y(X, y, "csr", multi_output=True)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 576, in check_X_y
    dtype=None)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 462, in check_array
    context))
ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 256)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.958

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 43
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9175
0.9275
0.922
0.931
0.933
0.9125
0.93
0.9345
0.9355
0.91
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 270)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9555

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 43
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.671
0.681
0.6825
0.6535
0.656
0.7535
0.6985
0.6775
0.7145
0.6885
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 258)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9615

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 44
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.6915
0.6775
0.6745
0.628
0.691
0.68
0.6555
0.591
0.7075
0.7025
0.5465
0.6745
0.686
0.6985
0.6495
0.5995
0.6665
0.709
0.7085
0.7
0.6475
0.5685
0.697
0.662
0.6435
0.6215
0.67
0.619
0.628
0.6015
0.5825
0.704
0.6525
0.752
0.66
0.6795
0.707
0.716
0.7025
0.643
0.6445
0.6165
0.469
0.646
0.7355
0.661
0.643
0.595
0.6605
0.6425
0.526
0.6335
0.6175
0.623
0.6375
0.6805
0.552
0.6625
Traceback (most recent call last):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 45, in <module>
    y1=neigh.predict(X1)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\classification.py", line 145, in predict
    neigh_dist, neigh_ind = self.kneighbors(X)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\base.py", line 385, in kneighbors
    for s in gen_even_slices(X.shape[0], n_jobs)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\parallel.py", line 779, in __call__
    while self.dispatch_one_batch(iterator):
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\parallel.py", line 625, in dispatch_one_batch
    self._dispatch(tasks)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\parallel.py", line 588, in _dispatch
    job = self._backend.apply_async(batch, callback=cb)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\_parallel_backends.py", line 111, in apply_async
    result = ImmediateResult(func)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\_parallel_backends.py", line 332, in __init__
    self.results = batch()
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\parallel.py", line 131, in __call__
    return [func(*args, **kwargs) for func, args, kwargs in self.items]
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\parallel.py", line 131, in <listcomp>
    return [func(*args, **kwargs) for func, args, kwargs in self.items]
KeyboardInterrupt
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 267)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9535

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 44
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9175
0.907
0.938
0.878
0.919
0.9365
0.718
0.9255
0.815
0.852
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 263)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9575

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 45
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9275
0.911
0.937
0.3765
0.924
0.7865
0.929
0.849
0.9315
0.8875
Traceback (most recent call last):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 55, in <module>
    plt.plot(x,y)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\pyplot.py", line 3358, in plot
    ret = ax.plot(*args, **kwargs)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\__init__.py", line 1855, in inner
    return func(ax, *args, **kwargs)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\axes\_axes.py", line 1527, in plot
    for line in self._get_lines(*args, **kwargs):
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\axes\_base.py", line 406, in _grab_next_args
    for seg in self._plot_args(this, kwargs):
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\axes\_base.py", line 383, in _plot_args
    x, y = self._xy_from_xy(x, y)
  File "C:\Users\dell.DESKTOP-5VND8PJ\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\axes\_base.py", line 242, in _xy_from_xy
    "have shapes {} and {}".format(x.shape, y.shape))
ValueError: x and y must have same first dimension, but have shapes (11,) and (2001,)
>>> 
 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 260)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.9585

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 45
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.7795
0.9405
0.9355
0.9405
0.9085
0.9275
0.7575
0.8935
0.9395
0.9145

 RESTART: C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py 

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 22
    clf = clf.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples,), for example using ravel().
(2000, 254)

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 28
    neigh.fit(X, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.955

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 31
    neigh.fit(X_new, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.957

Warning (from warnings module):
  File "C:\Users\dell.DESKTOP-5VND8PJ\Desktop\Semester 6\ELL 409\Assignments\Assignment2\Final\Lab_Test\tree.py", line 45
    neigh.fit(X1, y)
DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
0.8895
0.8685
0.9475
0.926
0.87
0.932
0.928
0.9075
0.9355
0.8805
