repo_name
string
path
string
copies
string
size
string
content
string
license
string
rnyang/learningprisoners
ipstrategy.py
1
40015
import random import numpy as np from sklearn import svm from sklearn import linear_model import string as S from IPD import * from strategy import * # Basic Information Player # If opponent is likely to defect, defect # This does try to maximize score, just to win/tie each round class BasicIP(Strategy): ...
mit
matthew-tucker/mne-python
mne/tests/test_epochs.py
1
64608
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) import os.path as op from copy import deepcopy from nose.tools import (assert_true, assert_equal, assert_raises, assert_not_equal) from numpy....
bsd-3-clause
sassoftware/saspy
saspy/sasdata.py
1
69676
# # Copyright SAS Institute # # 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...
apache-2.0
TomAugspurger/pandas
pandas/tests/indexes/test_base.py
1
93451
from collections import defaultdict from datetime import datetime, timedelta from io import StringIO import math import operator import re import numpy as np import pytest import pandas._config.config as cf from pandas._libs.tslib import Timestamp from pandas.compat.numpy import np_datetime64_compat from pandas.util...
bsd-3-clause
oscaribv/pyaneti
src/plot_data.py
1
33652
#Let us do the plots here from matplotlib import gridspec from matplotlib.colors import LogNorm if ( is_seaborn_plot ): import seaborn as sns sns.set(style='ticks') sns.set_color_codes(seaborn_palette) fsx = figure_size_x fsy = figure_size_y fos = font_size_label vari = params[0] posterior = params[1] chi2 = p...
gpl-3.0
mbaumBielefeld/popkin
popkin/model/arm2d2segment.py
1
36697
#!/usr/bin/env python # coding: utf8 import numpy as np import math import random import matplotlib.pyplot as plt import logging import copy import pickle from popkin.model.place_field import PlaceField, AngleField, PolarField from popkin.model.neural_field import NeuralLayer from popkin.model.som import SOM import pyb...
gpl-2.0
atilag/qiskit-sdk-py
qiskit/tools/visualization.py
1
71859
# -*- coding: utf-8 -*- # pylint: disable=invalid-name,anomalous-backslash-in-string # Copyright 2017 IBM RESEARCH. All Rights Reserved. # # 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 # # ...
apache-2.0
zfrenchee/pandas
pandas/tests/test_algos.py
1
57547
# -*- coding: utf-8 -*- import numpy as np import pytest from numpy.random import RandomState from numpy import nan from datetime import datetime from itertools import permutations from pandas import (Series, Categorical, CategoricalIndex, Timestamp, DatetimeIndex, Index, IntervalIndex) import pan...
bsd-3-clause
mortonjt/scipy
scipy/signal/signaltools.py
1
81793
# Author: Travis Oliphant # 1999 -- 2002 from __future__ import division, print_function, absolute_import import warnings import threading from . import sigtools from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import linalg from scipy.fftpack import (fft, ifft, ifftshift, ...
bsd-3-clause
cbclab/MDT
mdt/__init__.py
1
41044
import collections import logging import logging.config as logging_config import os from contextlib import contextmanager import numpy as np import mot from mot.configuration import CLRuntimeInfo, CLRuntimeAction from .__version__ import VERSION, VERSION_STATUS, __version__ from mdt.configuration import get_logging_c...
lgpl-3.0
jjhelmus/artview
artview/components/plot_grid_legacy.py
1
41694
""" plot_grid.py Class instance used to make Display. """ # Load the needed packages import numpy as np import os import pyart from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as \ NavigationToolbar from matplotlib.figure import F...
bsd-3-clause
kdebrab/pandas
pandas/core/panel.py
1
54907
""" Contains data structures designed for manipulating panel (3-dimensional) data """ # pylint: disable=E1103,W0231,W0212,W0621 from __future__ import division import numpy as np import warnings from pandas.core.dtypes.cast import ( infer_dtype_from_scalar, cast_scalar_to_array, maybe_cast_item) from panda...
bsd-3-clause
pcrumley/Iseult
src/phase_plots.py
1
50141
#!/usr/bin/env pythonw import tkinter as Tk from tkinter import ttk import matplotlib import numpy as np import numpy.ma as ma import new_cmaps from new_cnorms import PowerNormWithNeg from Numba2DHist import Fast2DHist, Fast2DWeightedHist, vecLog10Norm import matplotlib.colors as mcolors import matplotlib.gridspec as g...
gpl-3.0
Patrick-Cole/pygmi
pygmi/mt/dataprep.py
1
56454
# ----------------------------------------------------------------------------- # Name: dataprep.py (part of PyGMI) # # Author: Patrick Cole # E-Mail: pcole@geoscience.org.za # # Copyright: (c) 2019 Council for Geoscience # Licence: GPL-3.0 # # This file is part of PyGMI # # PyGMI is free softwar...
gpl-3.0
UDST/urbanaccess
urbanaccess/tests/test_gtfs_network.py
1
71992
import pytest import os import time import glob import pandas as pd import numpy as np import urbanaccess.gtfs.network as gtfs_network import urbanaccess.gtfs.load as gtfs_load from urbanaccess.network import urbanaccess_network from urbanaccess.gtfs.gtfsfeeds_dataframe import urbanaccess_gtfs_df @pytest.fixture def...
agpl-3.0
jmontoyam/mne-python
mne/viz/ica.py
3
37420
"""Functions to plot ICA specific data (besides topographies) """ from __future__ import print_function # Authors: Denis Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Teon Brooks <teon.brooks@gmail.com> # # License: Simplified BSD from functools...
bsd-3-clause
trsheph/SynBioStandardizer
SynSubtilis2/genestand2.py
1
46296
##### # # Synthetic Biology Gene Standardizer # Copyright (c) 2015, Tyson R. Shepherd, PhD # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abo...
bsd-2-clause
yousrabk/mne-python
mne/preprocessing/maxwell.py
1
54691
# -*- coding: utf-8 -*- # Authors: Mark Wronkiewicz <wronk.mark@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # Jussi Nurminen <jnu@iki.fi> # License: BSD (3-clause) from copy import deepcopy import numpy as np from scipy import linalg from math import factorial from os import path as op from...
bsd-3-clause
harisbal/pandas
pandas/core/frame.py
1
295341
# pylint: disable=E1101 # pylint: disable=W0212,W0703,W0622 """ DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to...
bsd-3-clause
credp/lisa
lisa/analysis/functions.py
1
32267
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
apache-2.0
liangfok/controlit_demos
dreamer_controlit_demos/nodes/Demo9_CARL_Telemanipulation.py
1
122162
#!/usr/bin/env python ''' Enables users to telemanipulate Dreamer's end effectors via CARL. Uses WBOSC configured with due end-effector 5DOF control. ----------------- Dependency notes: If you're using Python 2.7, you need to install Python's enum package. Download it from here: https://pypi.python.org/pypi/enum34#...
lgpl-2.1
ycaihua/scikit-learn
sklearn/feature_extraction/tests/test_text.py
2
34107
from __future__ import unicode_literals import warnings from sklearn.feature_extraction.text import strip_tags from sklearn.feature_extraction.text import strip_accents_unicode from sklearn.feature_extraction.text import strip_accents_ascii from sklearn.feature_extraction.text import HashingVectorizer from sklearn.fe...
bsd-3-clause
desihub/desispec
py/desispec/fluxcalibration.py
1
63206
""" desispec.fluxcalibration ======================== Flux calibration routines. """ from __future__ import absolute_import import numpy as np from .resolution import Resolution from .linalg import cholesky_solve, cholesky_solve_and_invert, spline_fit from .interpolation import resample_flux from desiutil.log import g...
bsd-3-clause
lfairchild/PmagPy
pmagpy_tests/test_contribution_builder.py
1
32678
#!/usr/bin/env python import unittest import os import sys import numpy as np import pandas as pd from pmagpy import pmag from pmagpy import ipmag from pmagpy import contribution_builder as cb from pmagpy import data_model3 as data_model from pmagpy import controlled_vocabularies3 as cv # set constants WD = pmag.get...
bsd-3-clause
phobson/statsmodels
statsmodels/tsa/statespace/tests/test_representation.py
1
44585
""" Tests for python wrapper of state space representation and filtering Author: Chad Fulton License: Simplified-BSD References ---------- Kim, Chang-Jin, and Charles R. Nelson. 1999. "State-Space Models with Regime Switching: Classical and Gibbs-Sampling Approaches with Applications". MIT Press Books. The MIT Press...
bsd-3-clause
lucidfrontier45/scikit-learn
sklearn/metrics/metrics.py
1
52065
"""Utilities to evaluate the predictive performance of models Functions named as ``*_score`` return a scalar value to maximize: the higher the better Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better """ # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # ...
bsd-3-clause
flightgong/scikit-learn
sklearn/metrics/tests/test_metrics.py
1
104442
from __future__ import division, print_function import numpy as np from functools import partial from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn import ensemble from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from sklearn.datasets ...
bsd-3-clause
madphysicist/numpy
numpy/core/fromnumeric.py
2
121991
"""Module containing non-deprecated functions borrowed from Numeric. """ import functools import types import warnings import numpy as np from . import multiarray as mu from . import overrides from . import umath as um from . import numerictypes as nt from ._asarray import asarray, array, asanyarray from .multiarray ...
bsd-3-clause
nschloe/matplotlib2tikz
matplotlib2tikz/axes.py
1
31467
# -*- coding: utf-8 -*- # import matplotlib as mpl import numpy from matplotlib.backends import backend_pgf as mpl_backend_pgf from . import color class Axes(object): def __init__(self, data, obj): """Returns the PGFPlots code for an axis environment. """ self.content = [] # Are ...
mit
UT-CWE/Hyospy
Hyospy_ensemble/lib/SUNTANS/SUNTANS/suntrack.py
1
49700
# -*- coding: utf-8 -*- """ SUNTANS particle tracking Created on Wed Apr 17 09:54:48 2013 @author: mrayson """ from sunpy import Spatial, Grid import othertime #from trisearch import TriSearch from gridsearch import GridSearch from datetime import datetime,timedelta from scipy import spatial, sparse import numpy a...
mit
tdda/tdda
tdda/referencetest/referencetest.py
1
37028
# -*- coding: utf-8 -*- """ """ from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tempfile from tdda.referencetest.checkpandas import PandasComparison from tdda.referencetest.checkfiles import FilesComparison # DEFAULT_FAIL_DIR...
mit
tskisner/pytoast
pipelines/toast_ground_sim_simple.py
1
42388
#!/usr/bin/env python3 # Copyright (c) 2015-2018 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. from toast.mpi import MPI, finalize import os import sys import re import argparse import pickle from...
bsd-2-clause
brookehus/msmbuilder
msmbuilder/featurizer/featurizer.py
1
59461
# Author: Kyle A. Beauchamp <kyleabeauchamp@gmail.com> # Contributors: Robert McGibbon <rmcgibbo@gmail.com>, # Matthew Harrigan <matthew.p.harrigan@gmail.com> # Brooke Husic <brookehusic@gmail.com>, # Muneeb Sultan <msultan@stanford.edu> # Copyright (c) 2016, Stanford Universit...
lgpl-2.1
theislab/scvelo
scvelo/tools/dynamical_model.py
1
47085
from .. import settings from .. import logging as logg from ..preprocessing.moments import get_connectivities from .utils import make_unique_list, test_bimodality from .dynamical_model_utils import BaseDynamics, linreg, convolve, tau_inv, unspliced from typing import Any, Union, Callable, Optional, Sequence from threa...
bsd-3-clause
UNH-CORE/2015-09-24-turbine-test-bed-demo
py_2015_09_24_turbine_test_bed_demo/processing.py
1
30642
# -*- coding: utf-8 -*- """ This module contains classes and functions for processing data. """ from __future__ import division, print_function import numpy as np from pxl import timeseries as ts from pxl.timeseries import loadhdf import matplotlib.pyplot as plt import multiprocessing as mp import scipy.stats from sci...
mit
kthyng/octant
octant/grid.py
1
42018
# encoding: utf-8 '''Tools for creating and working with Arikawa C-Grids''' __docformat__ = "restructuredtext en" import os import sys import ctypes import cPickle from warnings import warn from copy import deepcopy import numpy as np import matplotlib.pyplot as plt from matplotlib.artist import Artist from matplotli...
bsd-3-clause
nmartensen/pandas
pandas/core/internals.py
1
182264
import copy from warnings import catch_warnings import itertools import re import operator from datetime import datetime, timedelta, date from collections import defaultdict from functools import partial import numpy as np from pandas.core.base import PandasObject from pandas.core.dtypes.dtypes import ( Extensio...
bsd-3-clause
Traecp/MCA_GUI
RSM_GUI_win_v1.1.7.py
2
73374
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import scipy.ndimage from scipy import stats from scipy.fftpack import fft, fftfreq, fftshift import os, sys import gc from os import listdir from os.path import isfile,join import gtk import matplotlib as mpl import matplotlib.pyplot as plt #mpl.use('GtkAgg'...
gpl-2.0
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/tests/test_stata.py
1
48615
# -*- coding: utf-8 -*- # pylint: disable=E1101 from datetime import datetime import datetime as dt import os import warnings import nose import struct import sys from distutils.version import LooseVersion import numpy as np import pandas as pd from pandas.compat import iterkeys from pandas.core.frame import DataFra...
mit
Kate-Willett/Climate_Explorer
PYTHON/MakeAreaAvgTS.py
1
30299
# PYTHON 3 # # Author: Kate Willett # Created: 4 March 2019 # Last update: 15 April 2019 # Location: /data/local/hadkw/HADCRUH2/UPDATE2014/PROGS/PYTHON/ # GitHub: https://github.com/Kate-Willett/PYTHON # ----------------------- # CODE PURPOSE AND OUTPUT # ----------------------- # This code reads in monthly mean...
cc0-1.0
sg0/Elemental
include/El/lapack_like/spectral.py
1
60508
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from ..core import * from ..blas_like import Copy, Entry...
bsd-3-clause
heide-support/HEIDE
HEIDE/src/heide.py
2
31101
# Copyright (C) 2015 Grant Frame # # 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 # (at your option) any later version. # # This program i...
gpl-2.0
jjtoharia/KaggleOutbrain
python/lstm.py
1
47216
# -*- coding: utf-8 -*- # NOTA: Arrancar desde /home/jjtoharia/ con: # source kaggle/bin/activate # [Python] - python -i kaggle/Outbrain/lstm.py [seq_len [iteraciones [maxNumFichs [b_guardarDatos]]]] # [pyspark] - spark-submit --driver-memory 4G kaggle/Outbrain/lstm_entrenar_RDD.py [seq_len [iteraciones [max...
mit
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/tests/test_sql.py
1
105456
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
mit
dingocuster/scikit-learn
sklearn/linear_model/least_angle.py
1
53462
""" Least Angle Regression algorithm. See the documentation on the Generalized Linear Model for a complete discussion. """ from __future__ import print_function # Author: Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux # # License: BSD 3 ...
bsd-3-clause
anntzer/scikit-learn
sklearn/decomposition/_dict_learning.py
2
60539
""" Dictionary learning. """ # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools import warnings from math import ceil import numpy as np from scipy import linalg from joblib import Parallel, effective_n_jobs from ..base import BaseEstimator, Tr...
bsd-3-clause
pizzathief/numpy
numpy/linalg/linalg.py
3
86155
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
bsd-3-clause
madphysicist/numpy
numpy/core/code_generators/ufunc_docstrings.py
1
106323
""" Docstrings for generated ufuncs The syntax is designed to look like the function add_newdoc is being called from numpy.lib, but in this file add_newdoc puts the docstrings in a dictionary. This dictionary is used in numpy/core/code_generators/generate_umath.py to generate the docstrings for the ufuncs in numpy.co...
bsd-3-clause
wilsonkichoi/zipline
zipline/testing/fixtures.py
1
47143
from abc import ABCMeta, abstractproperty import sqlite3 from unittest import TestCase from contextlib2 import ExitStack from logbook import NullHandler, Logger from nose_parameterized import parameterized from pandas.util.testing import assert_series_equal from six import with_metaclass from toolz import flip import ...
apache-2.0
zhouyao1994/incubator-superset
superset/connectors/druid/models.py
1
60171
# 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
ryfeus/lambda-packs
HDF4_H5_NETCDF/source2.7/numpy/linalg/linalg.py
3
82419
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
mit
UCL-InfoSec/loopix
aws/fabfile.py
1
50998
from fabric.api import env, sudo, run, settings, cd, local from fabric.decorators import runs_once, roles, parallel, hosts from fabric.operations import get, put from fabric.tasks import execute import fabric.contrib.files import boto3 import sys import os import sys import sqlite3 import random from binascii import he...
bsd-2-clause
ganong123/HARK
gn/default_model.py
1
52545
# -*- coding: utf-8 -*- """ Created on Mon Jun 20 15:55:59 2016 @author: ganong """ import os os.environ["R_HOME"] = "/Library/Frameworks/R.framework/Resources" os.chdir("/Users/ganong/repo/HARK-comments-and-cleanup/gn") out_path = "~/dropbox/hampra/out2/" import settings import sys sys.path.insert(0,'../') sys.path....
apache-2.0
ToFuProject/tofu
tofu/tests/tests01_geom/test_01_GG.py
1
76291
""" This module contains tests for tofu.geom in its structured version """ # External modules import numpy as np # ToFu-specific import tofu.geom._GG as GG from .testing_tools import compute_ves_norm # header VerbHead = 'tofu.geom.test_01_GG' ####################################################### # # Setup an...
mit
luwei0917/awsemmd_script
pyCodeLib.py
1
263756
import time import subprocess import os import math import sys import functools import itertools import numpy as np from scipy import stats import random from functools import partial import datetime import pandas as pd from Bio.PDB.Polypeptide import three_to_index from Bio.PDB.Polypeptide import index_to_three # MY...
mit
guaix-ucm/django-megaraetc
etc/numeric.py
1
39581
# # Copyright 2010-2016 Universidad Complutense de Madrid (Spain) # # This file is part of Megara Exposure Time Calculator # # Megara ETC 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...
gpl-3.0
MTgeophysics/mtpy
mtpy/imaging/plotpseudosection.py
1
47677
# -*- coding: utf-8 -*- """ Created on Thu May 30 18:39:58 2013 @author: jpeacock-pr """ #============================================================================== import matplotlib.pyplot as plt import numpy as np import os import matplotlib.colorbar as mcb import matplotlib.colors as colors import mtpy.imagin...
gpl-3.0
jniediek/mne-python
mne/channels/channels.py
1
35979
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Andrew Dykstra <andrew.r.dykstra@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os ...
bsd-3-clause
lmzintgraf/MultiMAuS
data/features/aggregate_features.py
1
31068
""" This file provides a class that can be ''trained'' on training data, and then produce new aggregate features for both training and test data. ''Training'' this class simply consists of it memorizing various statistics. Features constructed by this class are primarily inspired by: "A data mining based system for c...
mit
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_New_Server_0715_2015_pre_activation_rectifier.py
2
47528
# coding: utf-8 # In[5]: import sys, os sys.path.append('../../../libs/') sys.path.append('../libs/') sys.path.append('../../libs/') import os.path import IO_class from IO_class import FileOperator from sklearn import cross_validation import sklearn import csv from dateutil import parser from datetime import timede...
gpl-2.0
plotly/python-api
packages/python/plotly/plotly/graph_objs/treemap/_marker.py
1
37843
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "treemap" _path_str = "treemap.marker" _valid_props = { "autocolorscale", "ca...
mit
cbertinato/pandas
pandas/tests/test_base.py
1
50791
from datetime import datetime, timedelta from io import StringIO import re import sys import numpy as np import pytest from pandas._libs.tslib import iNaT from pandas.compat import PYPY from pandas.compat.numpy import np_array_datetime64_compat from pandas.core.dtypes.common import ( is_datetime64_dtype, is_date...
bsd-3-clause
AlexisEidelman/Til
til/data/data/Patrimoine.py
1
42004
# -*- coding:utf-8 -*- ''' Created on 2 août 2013 @author: a.eidelman ''' import os import numpy as np from pandas import merge, DataFrame, Series, concat, read_csv import pdb # 1- Importation des classes/librairies/tables nécessaires à l'importation des # données de l'enquête Patrimoine from til.data.DataTil impo...
gpl-3.0
timothydmorton/VESPA
vespa/stars/populations.py
1
76295
from __future__ import print_function, division import logging import re, os, os.path on_rtd = os.environ.get('READTHEDOCS') == 'True' if not on_rtd: import numpy as np import matplotlib.pyplot as plt import pandas as pd import scipy.stats as stats import numpy.random as rand from astropy im...
mit
plotly/python-api
packages/python/plotly/plotly/graph_objs/_scatter.py
1
107803
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatter(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "scatter" _valid_props = { "cliponaxis", "connectgaps", "customdata", "c...
mit
luisera/gmpe-smtk
smtk/trellis/trellis_plots.py
1
30238
#!/usr/bin/env/python # LICENSE # # Copyright (c) 2010-2014, GEM Foundation, G. Weatherill, M. Pagani, # D. Monelli. # # The Hazard Modeller's Toolkit is free software: you can redistribute # it and/or modify it under the terms of the GNU Affero General Public # License as published by the Free Software Foundation, eit...
agpl-3.0
renhaocui/activityExtractor
runHybrid.py
1
58548
import json, re, sys, pickle import numpy as np from keras.layers import Dense, LSTM, Input, concatenate, GRU, Lambda, Flatten, GRU from keras.layers.embeddings import Embedding from keras.models import Model from keras.preprocessing import sequence from keras.preprocessing.text import Tokenizer from keras.utils import...
mit
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/tseries/tests/test_timezones.py
1
34781
# pylint: disable-msg=E1101,W0612 from datetime import datetime, time, timedelta, tzinfo, date import sys import os import nose import numpy as np import pytz from pandas import (Index, Series, TimeSeries, DataFrame, isnull, date_range, Timestamp) from pandas import DatetimeIndex, Int64Index, to_...
gpl-3.0
bolozna/EDENetworks
eden_analyzer_v2.py
1
38887
""" EDENetworks, a genetic network analyzer Copyright (C) 2011 Aalto University 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 2 of the License, or (at your option) any later version...
gpl-2.0
fabiansinz/pipeline
python/pipeline/reso.py
1
72697
""" Schemas for resonant scanners.""" import datajoint as dj from datajoint.jobs import key_hash import matplotlib.pyplot as plt import numpy as np import scanreader from . import experiment, notify, shared from .utils import galvo_corrections, signal, quality, mask_classification, performance from .exceptions import ...
lgpl-3.0
darcamo/pyphysim
pyphysim/channels/fading.py
1
49614
#!/usr/bin/env python import math from typing import List, Optional, Tuple, Union, cast import numpy as np from ..util.conversion import dB2Linear, linear2dB from .fading_generators import JakesSampleGenerator, RayleighSampleGenerator try: import matplotlib.pyplot as plt # from mpl_toolkits.mplot3d import ...
gpl-2.0
jreback/pandas
pandas/tests/indexes/datetimes/test_timezones.py
1
44979
""" Tests for DatetimeIndex timezone-related methods """ from datetime import date, datetime, time, timedelta, tzinfo import dateutil from dateutil.tz import gettz, tzlocal import numpy as np import pytest import pytz from pandas._libs.tslibs import conversion, timezones import pandas.util._test_decorators as td imp...
bsd-3-clause
jakereimer/pipeline
python/pipeline/stack.py
2
135867
""" Schemas for structural stacks. """ import datajoint as dj from datajoint.jobs import key_hash import matplotlib.pyplot as plt import numpy as np import scanreader from scipy import signal from scipy import ndimage from scipy import optimize import itertools from . import experiment, notify, shared, reso, meso anat...
lgpl-3.0
SasView/sasmodels
sasmodels/jitter.py
1
55967
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Jitter Explorer =============== Application to explore orientation angle and angular dispersity. From the command line:: # Show docs python -m sasmodels.jitter --help # Guyou projection jitter, uniform over 20 degree theta and 10 in phi python -m sas...
bsd-3-clause
unnikrishnankgs/va
venv/lib/python3.5/site-packages/matplotlib/tests/test_axes.py
2
156654
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange from itertools import chain, product from distutils.version import LooseVersion import io from nose.tools import assert_equal, assert_raises, assert_false, assert_true f...
bsd-2-clause
sassoftware/sas-viya-programming
python/automate-modeling-at-scale/params_box.py
1
46698
# Jupyter widget for visual input of model parameters import ipywidgets as widgets from IPython.display import display import copy from ipywidgets import Layout from xgboost import XGBClassifier from sklearn.metrics import roc_curve from sklearn.metrics import accuracy_score import tensorflow as tf from imblearn.over...
apache-2.0
anntzer/scikit-learn
sklearn/cluster/_kmeans.py
1
78907
"""K-means clustering.""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.pretten...
bsd-3-clause
xuewei4d/scikit-learn
sklearn/model_selection/_search_successive_halving.py
5
40284
from math import ceil, floor, log from abc import abstractmethod from numbers import Integral import numpy as np from ._search import _check_param_grid from ._search import BaseSearchCV from . import ParameterGrid, ParameterSampler from ..utils.validation import _num_samples from ..base import is_classifier from ._spl...
bsd-3-clause
baharmon/tangible_topography
blind_review/analysis.py
1
77919
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @brief: spatial analysis for the tangible topography experiment This program is free software under the GNU General Public License (>=v2). """ import os import sys import csv import atexit import grass.script as gscript from grass.exceptions import CalledModuleError ...
gpl-2.0
winklerand/pandas
pandas/core/base.py
1
39014
""" Base and utility classes for pandas objects. """ import warnings from pandas import compat from pandas.compat import builtins import numpy as np from pandas.core.dtypes.missing import isna from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries, ABCIndexClass from pandas.core.dtypes.common import ( is_o...
bsd-3-clause
jaeilepp/eggie
mne/io/base.py
1
73937
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) from math import floor, ceil import copy from copy import...
bsd-2-clause
nmartensen/pandas
pandas/core/reshape/reshape.py
1
46504
# pylint: disable=E1101,E1103 # pylint: disable=W0703,W0622,W0613,W0201 from pandas.compat import range, text_type, zip from pandas import compat import itertools import re import numpy as np from pandas.core.dtypes.common import ( _ensure_platform_int, is_list_like, is_bool_dtype, needs_i8_conversion) fr...
bsd-3-clause
cdeboever3/cdpybio
cdpybio/star.py
1
32360
import copy import os import pdb import numpy as np import pandas as pd # Column labels for SJ.out.tab. COLUMN_NAMES = ('chrom', 'start', 'end', 'strand', 'intron_motif', 'annotated', 'unique_junction_reads', 'multimap_junction_reads', 'max_overhang') # Subset of column...
mit
alberlab/alabtools
alabtools/api.py
1
40698
# Copyright (C) 2017 University of Southern California and # Nan Hua # # Authors: Nan Hua # # 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 Licen...
gpl-3.0
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/pandas/tests/io/test_packers.py
3
32058
import pytest from warnings import catch_warnings import os import datetime import numpy as np import sys from distutils.version import LooseVersion from pandas import compat from pandas.compat import u, PY3 from pandas import (Series, DataFrame, Panel, MultiIndex, bdate_range, date_range, period_...
mit
malmiron/incubator-airflow
airflow/contrib/hooks/bigquery_hook.py
1
79737
# -*- coding: utf-8 -*- # # 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 #...
apache-2.0
Erotemic/vtool
vtool_ibeis/matching.py
1
72539
# -*- coding: utf-8 -*- """ vt python -m utool.util_inspect check_module_usage --pat="matching.py" """ from __future__ import absolute_import, division, print_function from vtool_ibeis import _rhomb_dist import six import warnings import pandas as pd import utool as ut import ubelt as ub import numpy as np imp...
apache-2.0
IntelLabs/hpat
sdc/timsort.py
1
42331
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of sou...
bsd-2-clause
Archman/beamline
beamline/element.py
1
61470
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module defines all kinds of magnet components/elements. .. Author: Tong Zhang .. Created : 2016-03-22 """ import json import epics import matplotlib.patches as patches import matplotlib.pyplot as plt import numpy as np from matplotlib.path import Path from ...
mit
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/excel.py
1
55111
""" Module parse to/from Excel """ # --------------------------------------------------------------------- # ExcelFile class from datetime import datetime, date, time, MINYEAR import os import abc import numpy as np from pandas.core.frame import DataFrame from pandas.io.parsers import TextParser from pandas.io.commo...
mit
sriki18/scipy
scipy/stats/_distn_infrastructure.py
1
118787
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import from scipy._lib.six import string_types, exec_, PY3 from scipy._lib._util import getargspec_no_self as _getargspec import sys import keyword import r...
bsd-3-clause
openwns/wrowser
openwns/wrowser/Windows.py
1
67016
############################################################################### # This file is part of openWNS (open Wireless Network Simulator) # _____________________________________________________________________________ # # Copyright (C) 2004-2007 # Chair of Communication Networks (ComNets) # Kopernikusstr. 16, D-...
gpl-2.0
alephu5/Soundbyte
environment/lib/python3.3/site-packages/IPython/core/interactiveshell.py
2
131375
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
gpl-3.0
chinageology/GeoPython
geopytool/CustomClass.py
1
61992
version = '0.8.19.5.103' date = '2019-8-15' dpi = 128 # coding:utf-8 from geopytool.ImportDependence import * # from geopytool.TableViewer import TableViewer class GrowingTextEdit(QtWidgets.QTextEdit): def __init__(self, *args, **kwargs): super(GrowingTextEdit, self).__init__(*args, **kwargs) ...
gpl-3.0
geopandas/geopandas
geopandas/plotting.py
1
36434
import warnings import numpy as np import pandas as pd from pandas.plotting import PlotAccessor import geopandas from distutils.version import LooseVersion from ._decorator import doc def deprecated(new): """Helper to provide deprecation warning.""" def old(*args, **kwargs): warnings.warn( ...
bsd-3-clause
ryfeus/lambda-packs
Spacy/source2.7/tqdm/_tqdm.py
1
47049
""" Customisable progressbar decorator for iterators. Includes a default (x)range iterator printing to stderr. Usage: >>> from tqdm import trange[, tqdm] >>> for i in trange(10): #same as: for i in tqdm(xrange(10)) ... ... """ from __future__ import absolute_import # integer division / : float, // : int from...
mit
meta-it/misc-addons
sugarcrm_migration/import_sugarcrm.py
1
46184
# -*- coding: utf-8 -*- import logging _logger = logging.getLogger(__name__) try: import MySQLdb import MySQLdb.cursors from pandas import merge, DataFrame except ImportError: pass from openerp.addons.import_framework.import_base import import_base, create_childs from openerp.addons.import_framework....
lgpl-3.0
niknow/scipy
scipy/stats/stats.py
2
169920
# Copyright (c) Gary Strangman. All rights reserved # # Disclaimer # # This software is provided "as-is". There are no expressed or implied # warranties of any kind, including, but not limited to, the warranties # of merchantability and fitness for a given application. In no event # shall Gary Strangman be liable fo...
bsd-3-clause
Ciaran1981/geospatial-learn
geospatial_learn/shape.py
1
66369
# -*- coding: utf-8 -*- """ The shape module. Description ----------- This module contains various functions for the writing of data in OGR vector formats. The functions are mainly concerned with writing geometric or pixel based attributes, with the view to them being classified in the learning module """ from s...
gpl-3.0
sonnyhu/scikit-learn
sklearn/linear_model/coordinate_descent.py
1
81068
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings from abc import ABCMeta, abstractmethod import n...
bsd-3-clause