Demo entry 6361596



Submitted by anonymous on May 05, 2017 at 04:30
Language: Python 3. Code size: 1.5 kB.

# codes to import packages needed  
import os  
import glob  
import sys  
from os.path import join as pjoin  
import subprocess  
import numpy as np  
from scipy import (io, special, spatial,  
                   interpolate, integrate, optimize)  
%matplotlib inline  
import matplotlib  
from matplotlib import (pyplot as plt, animation, colors,  
                        ticker, path, patches, patheffects)  
from mpl_toolkits.axes_grid1 import make_axes_locatable  
    output = subprocess.check_output(['ffmpeg', '-version'])  
    version = output.split(b'\n')[0].split()[2]  
    print('Found: ffmpeg v{}'.format(version.decode('utf-8')))     
    ffmpeg_installed = True  
except subprocess.CalledProcessError:  
    ffmpeg_installed = False  
from sklearn import (decomposition, preprocessing, cluster,  
                     preprocessing, cluster, metrics,   
                     model_selection, neighbors)  
import string  
import warnings  
import plotly.plotly as py  
import plotly.graph_objs as go  
import plotly   
from mpl_toolkits.mplot3d import Axes3D  
simps = integrate.simps  
curve_fit = optimize.curve_fit  
Path = path.Path  
PathPatch = patches.PathPatch  
Convex_Hull = spatial.ConvexHull  
erf = special.erf  
ShuffleSplit = model_selection.ShuffleSplit  
KNeighborsClassifier = neighbors.KNeighborsClassifier  

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).