Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
7
79
path
stringlengths
5
167
copies
stringlengths
1
3
size
stringlengths
4
6
content
stringlengths
965
433k
license
stringclasses
15 values
COHRINT/cops_and_robots
src/cops_and_robots/helpers/visualizations.py
1
3212
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np def plot_multisurface(X, Y, Z, ax, cmaps=None, min_alpha=0.6, **kwargs): num_surfs = Z.shape[2] if cmaps == None: cmaps = ['Greys', 'Reds', 'Purples', 'Oranges', 'Greens', 'Blues', 'RdPu'] ...
apache-2.0
fsalmoir/PyGeM
pygem/igeshandler.py
1
10249
""" Derived module from filehandler.py to handle iges and igs files. """ import os import numpy as np from mpl_toolkits import mplot3d from matplotlib import pyplot from OCC.IGESControl import (IGESControl_Reader, IGESControl_Writer) from OCC.BRep import (BRep_Tool, BRep_Builder) from OCC.BRepBuilderAPI import (BRepBui...
mit
joshloyal/scikit-learn
examples/decomposition/plot_pca_iris.py
65
1485
#!/usr/bin/python # -*- coding: utf-8 -*- """ ========================================================= PCA example with Iris Data-set ========================================================= Principal Component Analysis applied to the Iris dataset. See `here <https://en.wikipedia.org/wiki/Iris_flower_data_set>`_ f...
bsd-3-clause
ndingwall/scikit-learn
examples/gaussian_process/plot_gpc_xor.py
43
2170
""" ======================================================================== Illustration of Gaussian process classification (GPC) on the XOR dataset ======================================================================== This example illustrates GPC on XOR data. Compared are a stationary, isotropic kernel (RBF) and ...
bsd-3-clause
kazemakase/scikit-learn
examples/ensemble/plot_bias_variance.py
357
7324
""" ============================================================ Single estimator versus bagging: bias-variance decomposition ============================================================ This example illustrates and compares the bias-variance decomposition of the expected mean squared error of a single estimator again...
bsd-3-clause
mannion9/Intro-to-Python
Simulations/Spring Simulation.py
1
1240
# Spring Simulation Animation import matplotlib.pyplot as plt import matplotlib.animation as animation import math # Input damping=1 # Set to 1 for damping forcing=0 # Set to 1 for damping of cos(wt+phi) # System m=1 # Mass (kg) k=1 # Spring Constant b=1 # Damping Constant F=1 # Forcing w=math.sqrt(k/m) # Freq...
mit
followyourheart/airflow
setup.py
4
2287
from setuptools import setup, find_packages import sys # Kept manually in sync with airflow.__version__ version = '1.5.0' doc = [ 'sphinx>=1.2.3', 'sphinx-argparse>=0.1.13', 'sphinx-rtd-theme>=0.1.6', 'Sphinx-PyPI-upload>=0.2.1' ] hive = [ 'hive-thrift-py>=0.0.1', 'pyhive>=0.1.3', 'pyhs2>=...
apache-2.0
ml-playground/data-science-from-scratch
code/visualizing_data.py
58
5116
import matplotlib.pyplot as plt from collections import Counter def make_chart_simple_line_chart(plt): years = [1950, 1960, 1970, 1980, 1990, 2000, 2010] gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3] # create a line chart, years on x-axis, gdp on y-axis plt.plot(years, gdp, color='gr...
unlicense
adamobeng/ibis
ibis/impala/tests/test_udf.py
9
18191
# Copyright 2015 Cloudera Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
apache-2.0
ovgarol/chaPulin9.0
simPulsar/parallel_simPulsar.py
1
5106
#!/usr/bin/env python """ Tercera implementacion del codigo Tercera modularizacion Primera paralelizacion Datos obtenidos de atnfParameters Primer paralelizacion completa. chaPulin8.8 """ import math, sys, time import numpy as np from scipy import array import simPulsar import pp import matplotlib...
agpl-3.0
codles/UpDownMethods
tests/test_Levitt1971_Fig5.py
1
2817
from UpDownMethods import CORRECT, INCORRECT import UpDownMethods as ud import numpy as np import matplotlib.pyplot as plt import unittest # # Simulation parameters responses = [CORRECT, CORRECT, CORRECT, CORRECT, INCORRECT, CORRECT, INCORRECT, INCORRECT, CORRECT, INCORRECT, CORRECT, CORRECT, CORRECT, C...
mit
ihincks/python-qinfer
src/qinfer/metrics.py
2
4157
#!/usr/bin/python # -*- coding: utf-8 -*- ## # metrics.py: Metrics for use with SciPy and sklearn functions. ## # © 2012 Chris Ferrie (csferrie@gmail.com) and # Christopher E. Granade (cgranade@gmail.com) # # This file is a part of the Qinfer project. # Licensed under the AGPL version 3. ## # This program is fre...
agpl-3.0
kwotsin/TensorFlow-ENet
test_enet.py
1
9671
import tensorflow as tf from tensorflow.contrib.framework.python.ops.variables import get_or_create_global_step from tensorflow.python.platform import tf_logging as logging from enet import ENet, ENet_arg_scope from preprocessing import preprocess import os import time import numpy as np import matplotlib.pyplot as plt...
mit
subutai/htmresearch
projects/sequence_prediction/continuous_sequence/run_knn.py
12
7104
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2016, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
agpl-3.0
vortex-ape/scikit-learn
doc/tutorial/text_analytics/solutions/exercise_01_language_train_model.py
30
2272
"""Build a language detector model The goal of this exercise is to train a linear classifier on text features that represent sequences of up to 3 consecutive characters so as to be recognize natural languages by using the frequencies of short character sequences as 'fingerprints'. """ # Author: Olivier Grisel <olivie...
bsd-3-clause
annoviko/pyclustering
pyclustering/cluster/kmeans.py
1
24245
"""! @brief The module contains K-Means algorithm and other related services. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import copy import numpy import matplotlib.pyplot as plt import matplotlib.animation as animation import pyclustering.core.km...
gpl-3.0
multipath-tcp/mptcp-analysis-scripts
packet_size_cdf.py
2
2185
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014-2015 Matthieu Baerts & Quentin De Coninck # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or ...
gpl-3.0
bromjiri/Presto
trainer/tests/stop.py
1
1942
import datetime import trainer.corpora as crp import trainer.features as ftr import trainer.classifier_test as cls import os # vars type = "stop-pos" nltk_run = True sklearn_run = False COUNT = 5000 cut = int((COUNT / 2) * 3 / 4) array = [True] def run(dataset): nlt = dict() skl = dict() dir = "output/...
mit
musically-ut/statsmodels
statsmodels/tsa/seasonal.py
27
5392
""" Seasonal Decomposition by Moving Averages """ from statsmodels.compat.python import lmap, range, iteritems import numpy as np from pandas.core.nanops import nanmean as pd_nanmean from .filters._utils import _maybe_get_pandas_wrapper_freq from .filters.filtertools import convolution_filter from statsmodels.tsa.tsato...
bsd-3-clause
mjudsp/Tsallis
examples/applications/plot_outlier_detection_housing.py
28
5563
""" ==================================== Outlier detection on a real data set ==================================== This example illustrates the need for robust covariance estimation on a real data set. It is useful both for outlier detection and for a better understanding of the data structure. We selected two sets o...
bsd-3-clause
zingale/pyro2
swe/simulation.py
1
8883
from __future__ import print_function import importlib import numpy as np import matplotlib import matplotlib.pyplot as plt import swe.derives as derives import swe.unsplit_fluxes as flx import mesh.boundary as bnd from simulation_null import NullSimulation, grid_setup, bc_setup import util.plot_tools as plot_tools ...
bsd-3-clause
AndroidOpenDevelopment/android_external_chromium_org
chrome/test/nacl_test_injection/buildbot_nacl_integration.py
94
3083
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import subprocess import sys def Main(args): pwd = os.environ.get('PWD', '') is_integration_bot = 'nacl-chrome' in ...
bsd-3-clause
zhreshold/mxnet
example/ssd/detect/detector.py
16
8833
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache-2.0
Tagar/incubator-airflow
docs/conf.py
10
9042
# -*- coding: utf-8 -*- # # Airflow documentation build configuration file, created by # sphinx-quickstart on Thu Oct 9 20:50:01 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
apache-2.0
gVallverdu/pymatgen
pymatgen/phonon/tests/test_plotter.py
2
3672
import unittest import os import json import scipy from io import open from pymatgen.phonon.dos import CompletePhononDos from pymatgen.phonon.plotter import PhononDosPlotter, PhononBSPlotter, ThermoPlotter from pymatgen.phonon.bandstructure import PhononBandStructureSymmLine test_dir = os.path.join(os.path.dirname(__...
mit
tfiedor/perun
perun/view/scatter/factory.py
1
10803
""" Module with graphs creation and configuration functions. """ from operator import itemgetter from collections import defaultdict import demandimport with demandimport.enabled(): import bkcharts as charts import bokeh.palettes as palettes import numpy as np import perun.profile.query as query import perun...
gpl-3.0
abhisg/scikit-learn
examples/decomposition/plot_faces_decomposition.py
103
4394
""" ============================ Faces dataset decompositions ============================ This example applies to :ref:`olivetti_faces` different unsupervised matrix decomposition (dimension reduction) methods from the module :py:mod:`sklearn.decomposition` (see the documentation chapter :ref:`decompositions`) . """...
bsd-3-clause
nstustudent/krotyuk_social_network_sa
Model.py
1
6780
from __future__ import print_function from keras.preprocessing import sequence from keras.models import Sequential from keras.layers import Dense, SpatialDropout1D,Dropout, Activation from keras.layers import Embedding from keras.layers import Conv1D, GlobalMaxPooling1D from sklearn.metrics import roc_curve, auc impor...
apache-2.0
DistrictDataLabs/yellowbrick
examples/balavenkatesan/testing.py
1
3563
import pandas as pd import csv from sklearn import neighbors from sklearn import datasets import numpy as np import yellowbrick as yb from yellowbrick.neighbors import KnnDecisionBoundariesVisualizer import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap def load_adm_sat_school_data(return_X_y=F...
apache-2.0
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
5