repo_name
string
path
string
copies
string
size
string
content
string
license
string
dkillick/iris
lib/iris/tests/__init__.py
1
47007
# (C) British Crown Copyright 2010 - 2018, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
lgpl-3.0
yl565/statsmodels
statsmodels/genmod/generalized_estimating_equations.py
1
98358
""" Procedures for fitting marginal regression models to dependent data using Generalized Estimating Equations. References ---------- KY Liang and S Zeger. "Longitudinal data analysis using generalized linear models". Biometrika (1986) 73 (1): 13-22. S Zeger and KY Liang. "Longitudinal Data Analysis for Discrete and ...
bsd-3-clause
tcporco/SageBoxModels
boxmodel/product.py
1
49482
#***************************************************************************** # Copyright (C) 2017 Lee Worden <worden dot lee at gmail dot com> # # Distributed under the terms of the GNU General Public License (GPL) v.2 # http://www.gnu.org/licenses/ #************************************************...
gpl-2.0
ASethi77/StateOfTheMedia
src/model/overall_runner.py
1
34132
# adding this to suppress sklearn DeprecationWarnings... def warn(*args, **kwargs): pass import warnings warnings.warn = warn import numpy as np import os import time import pickle import datetime from datetime import timedelta from optparse import OptionParser from sklearn.model_selection import cross_val_score, ...
apache-2.0
mistercrunch/panoramix
tests/core_tests.py
1
59111
# 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
orley-enterprises/ev_chargingcoordination2017
src/run.py
1
62812
''' The modules docstring...''' # ***************************************************************************************************** # * Imports # ***************************************************************************************************** import configparser from copy import deepcopy import copy ...
gpl-3.0
bnaul/scikit-learn
sklearn/decomposition/_dict_learning.py
1
58810
""" Dictionary learning """ # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools from math import ceil import numpy as np from scipy import linalg from joblib import Parallel, delayed, effective_n_jobs from ..base import BaseEstimator, Transforme...
bsd-3-clause
pylayers/pylayers
pylayers/network/network.py
1
63263
# -*- coding:Utf-8 -*- """ .. currentmodule:: pylayers.network.network Node Class ========== .. autoclass:: Node :members: Network Class ============== .. autoclass: Network :members: PNetwork Class ============== SimPy Process compliant version of the Network class .. autoclass:: PNetwork :members...
mit
cms-ttbarAC/CyMiniAna
python/hepPlotter/hepPlotter.py
1
35198
""" Created: 6 April 2016 Last Updated: 9 March 2018 Dan Marley daniel.edison.marley@cernSPAMNOT.ch Texas A&M University Bennett Magy bmagy@umichSPAMNOT.edu University of Michigan, Ann Arbor, MI 48109 ----- Class to make a simple instance each time we want some basic plots! This does not include ...
mit
pcrumley/Iseult
src/moments.py
1
48137
#!/usr/bin/env python import tkinter as Tk from tkinter import ttk import matplotlib import numpy as np import numpy.ma as ma import new_cmaps import matplotlib.colors as mcolors import matplotlib.gridspec as gridspec import matplotlib.patheffects as PathEffects import matplotlib.transforms as mtransforms from NumbaMo...
gpl-3.0
miguelalba89/ISStudio
isstudio.py
1
33162
""" Data set and instance selection algorithms. Author: Miguel de Alba Aparicio. """ """ The MIT License (MIT) Copyright (c) 2014 Miguel de Alba Aparicio Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
mit
VasLem/KinectPainting
experiment.py
1
36363
#encoding=utf-8 from classifiers import * from CDBIMM import * from mixed_classifier import CombinedGesturesClassifier from itertools import product import logging import ast import pandas as pd LOG = logging.getLogger('__name__') def perform_single_experiment(dict_param, filt=None, metric='Accuracy', ...
bsd-3-clause
gfyoung/pandas
pandas/core/reshape/reshape.py
1
35043
from __future__ import annotations import itertools from typing import List, Optional, Union import numpy as np import pandas._libs.algos as libalgos import pandas._libs.reshape as libreshape from pandas._libs.sparse import IntIndex from pandas._typing import Dtype from pandas.util._decorators import cache_readonly ...
bsd-3-clause
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/core/indexes/interval.py
1
55811
""" define the IntervalIndex """ import numpy as np import warnings from pandas.core.dtypes.missing import notna, isna from pandas.core.dtypes.generic import ABCDatetimeIndex, ABCPeriodIndex from pandas.core.dtypes.dtypes import IntervalDtype from pandas.core.dtypes.cast import ( maybe_convert_platform, find_comm...
mit
GuessWhoSamFoo/pandas
pandas/tests/scalar/timestamp/test_timestamp.py
1
38289
""" test the scalar Timestamp """ import calendar from datetime import datetime, timedelta import locale import unicodedata import dateutil from dateutil.tz import tzutc import numpy as np import pytest import pytz from pytz import timezone, utc from pandas._libs.tslibs import conversion from pandas._libs.tslibs.tim...
bsd-3-clause
kdaily/altanalyze
AltAnalyzeViewer.py
1
275708
from numpy import arange, sin, pi import os.path, sys, shutil import wx.lib.scrolledpanel import wx.grid as gridlib import os import string, re import wx import subprocess import matplotlib import numpy as np import matplotlib.pyplot as plt #matplotlib.use('WXAgg') from matplotlib.backends.backend_wx import NavigationT...
apache-2.0
cjhopp/obspyck
obspyck/util.py
2
52634
# -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Filename: util.py # Purpose: Helper functions for ObsPyck # Author: Tobias Megies, Lion Krischer # Email: megies@geophysik.uni-muenchen.de # License: GPLv2 # # Copyright (C) 2010 Tobias Megies, Lion Krischer # -------...
gpl-2.0
rgerkin/upsit
scratch.py
1
33324
import inspect import builtins import re import time import nbformat from IPython.display import Image,display,HTML import numpy as np from scipy.special import beta as betaf from scipy.stats import norm,beta from scipy.optimize import minimize import seaborn as sns import pandas as pd from sklearn.naive_bayes impo...
gpl-2.0
aclapes/darwintree
classification.py
1
43230
__author__ = 'aclapes' import numpy as np import sys from sklearn import svm from sklearn.metrics import average_precision_score, label_ranking_average_precision_score, make_scorer import utils from copy import deepcopy from sklearn import preprocessing, cross_validation, grid_search from sklearn.ensemble import Rando...
bsd-3-clause
andrewhanlon/QCD_scripts
sigmond/task_handler.py
1
147096
import os import stat import logging import sys import subprocess import abc import itertools import copy import shutil import glob from collections import OrderedDict from sortedcontainers import SortedSet from pylatex import Document, Section, Subsection, Subsubsection, Figure, SubFigure, NoEscape, \ Package, Lo...
gpl-3.0
depet/scikit-learn
sklearn/linear_model/coordinate_descent.py
1
54416
# 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 import itertools import operator from abc import ...
bsd-3-clause
bgris/ODL_bgris
lib/python3.5/site-packages/spyder/widgets/variableexplorer/dataframeeditor.py
1
32617
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the New BSD License # # DataFrameModel is based on the class ArrayModel from array editor # and the class DataFrameModel from the pandas project. # Present in pandas.sandbox.qtpandas in v0.13.1 # Copyright (c) 2011...
gpl-3.0
rfinn/LCS
python/lcs_paper2.py
1
136635
#!/usr/bin/env python ########################### ###### IMPORT MODULES ########################### import LCSbase as lb import LCScommon as lcscommon from matplotlib import pyplot as plt import numpy as np import os import scipy.stats as st from scipy.stats import ks_2samp, anderson_ksamp, binned_statistic import a...
gpl-3.0
quantopian/zipline
tests/test_algorithm.py
1
153030
# # Copyright 2018 Quantopian, 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 wr...
apache-2.0
espenhgn/LFPy
LFPy/recextelectrode.py
1
36246
#!/usr/bin/env python # -*- coding: utf-8 -*- """Copyright (C) 2012 Computational Neuroscience Group, NMBU. 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 you...
gpl-3.0
OzFlux/OzFluxQC
scripts/qcgf.py
1
190371
import ast from calendar import isleap from configobj import ConfigObj import constants as c import csv import datetime import dateutil import logging import numpy import matplotlib as mpl import matplotlib.dates as mdt import matplotlib.pyplot as plt import os import platform import pylab import qcck import qcio impor...
gpl-3.0
terrencepreilly/darglint
tests/test_integrity_checker.py
1
53520
import ast from unittest import ( TestCase, skip, ) from darglint.strictness import Strictness from darglint.docstring.style import DocstringStyle from darglint.integrity_checker import ( IntegrityChecker, ) from darglint.function_description import ( get_function_descriptions, ) from darglint.errors i...
mit
tritemio/FRETBursts
fretbursts/burst_plot.py
1
96452
# encoding: utf-8 # # FRETBursts - A single-molecule FRET burst analysis toolkit. # # Copyright (C) 2013-2016 The Regents of the University of California, # Antonino Ingargiola <tritemio@gmail.com> # """ This module defines all the plotting functions for the :class:`fretbursts.burstlib.Data` object. The ...
gpl-2.0
nervous-laughter/q2-demux
q2_demux/tests/test_demux.py
1
35140
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2017, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
bsd-3-clause
lbeltrame/bcbio-nextgen
bcbio/install.py
2
37019
"""Handle installation and updates of bcbio-nextgen, third party software and data. Enables automated installation tool and in-place updates to install additional data and software. """ from __future__ import print_function import argparse import collections import contextlib import datetime import dateutil from distu...
mit
choderalab/openpathsampling
openpathsampling/high_level/network.py
1
39302
import logging import itertools import pandas as pd import openpathsampling as paths from openpathsampling.netcdfplus import StorableNamedObject # from functools import reduce # not built-in for py3 logger = logging.getLogger(__name__) def _default_state_name(state): return state.name if state.is_named else ...
lgpl-2.1
UCHIC/h2outility
src/GAMUTRawData/odmservices/series_service.py
1
37416
import logging import threading import pandas from sqlalchemy import distinct, func from GAMUTRawData.odmdata import DataValue, Method, ODMVersion, OffsetType, Qualifier, QualityControlLevel, Sample, \ Series, SessionFactory, Site, Unit, Variable logger = logging.getLogger('main') class TimeoutException(Except...
bsd-3-clause
jtwhite79/pyemu
autotest/smoother_tests.py
1
77834
import os if not os.path.exists("temp"): os.mkdir("temp") def henry_setup(): import os import pyemu pst = pyemu.Pst(os.path.join("smoother","henry_pc","pest.pst")) par = pst.parameter_data par.loc[:,"parlbnd"] = 20.0 par.loc[:,"parubnd"] = 2000.0 par.loc["mult1","parlbnd"] = 0.9 par...
bsd-3-clause
bhzunami/Immo
immo/scikit/pipeline.py
1
46523
import os import pdb import logging import json import argparse import datetime import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt import ast # Scikit from sklearn.ensemble import ExtraTreesRegressor, IsolationForest from sklearn.externals import joblib from sklearn.metrics imp...
mit
Patrick-Cole/pygmi
pygmi/pfmod/cubes.py
1
69732
# ----------------------------------------------------------------------------- # Name: cubes.py (part of PyGMI) # # Author: Patrick Cole # E-Mail: pcole@geoscience.org.za # # Copyright: (c) 2013 Council for Geoscience # Licence: GPL-3.0 # # This file is part of PyGMI # # PyGMI is free software: ...
gpl-3.0
cython-testbed/pandas
pandas/tests/indexes/test_numeric.py
1
40859
# -*- coding: utf-8 -*- import pytest from datetime import datetime from pandas.compat import range import numpy as np from pandas import (Series, Index, Float64Index, Int64Index, UInt64Index) import pandas.util.testing as tm import pandas as pd from pandas._libs.tslibs import Timestamp from ...
bsd-3-clause
pravsripad/mne-python
mne/viz/_3d.py
2
135197
# -*- coding: utf-8 -*- """Functions to make 3D plots with M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Mainak Jas <maina...
bsd-3-clause
spi-x-i/shee
shee/frames/aggregate.py
1
30473
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import datetime import numpy as np import pandas as pd import matplotlib.dates as mdates import matplotlib.ticker as tick import matplotlib.pyplot as plt from frame import DStatException from frame import DStatOpenCsvException from frame import DStatReadColum...
gpl-3.0
linebp/pandas
pandas/tests/frame/test_analytics.py
1
77827
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import timedelta from distutils.version import LooseVersion import sys import pytest from string import ascii_lowercase from numpy import nan from numpy.random import randn import numpy as np from pandas.compat import lrange, product from p...
bsd-3-clause
dkriegner/xrayutilities
lib/xrayutilities/io/spec.py
1
46708
# This file is part of xrayutilities. # # xrayutilities 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. # # This program is distributed...
gpl-2.0
udibr/seizure-prediction
seizure/transforms.py
1
106479
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy import signal from scipy.signal import resample, hann from sklearn import preprocessing # optional modules for trying out different transforms try: import pywt except ImportError, e: pass try: from scikits.talkbox.features import...
mit
xji3/IGCexpansion
IGCexpansion/CodonGeneconv.py
1
69176
# Uses Alex Griffing's JsonCTMCTree package for likelihood and gradient calculation # Re-write of my previous CodonGeneconv class # commit number: Oct 22nd, 2014 for old package # cb1ba60ee2b57d6703cd9a3987000c2fd4dd68a5 # commit number: Dec 17th, 2014 for new package # 33e393a973161e3a29149e82bfda23882b5826f3 ...
gpl-3.0
stefsmeets/lines
lines/lines.py
1
80793
#!/usr/bin/env python2.7 # Lines - a python plotting program # Copyright (C) 2015 Stef Smeets # # 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, o...
gpl-2.0
veeresht/CommPy
commpy/channelcoding/convcode.py
1
34295
# Authors: CommPy contributors # License: BSD 3-Clause """ Algorithms for Convolutional Codes """ from __future__ import division import functools import math from warnings import warn import matplotlib.colors as mcolors import matplotlib.patches as mpatches import matplotlib.path as mpath import matplotlib.pyplot ...
bsd-3-clause
Delosari/dazer
bin/lib/Astro_Libraries/Abundances_Class.py
1
34828
from scipy.stats import truncnorm from uncertainties import ufloat, umath, unumpy, UFloat from pyneb import RecAtom, Atom, atomicData, Diagnostics from numpy import ndarray, zeros, mean, median, where, std, log10, power, random, exp, loadtxt, nan as np_nan, isnan, savetxt, transpose, copy, vstack,...
mit
QISKit/qiskit-sdk-py
qiskit/circuit/quantumcircuit.py
1
41464
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
apache-2.0
giorgiop/scikit-learn
sklearn/model_selection/_search.py
2
48518
""" The :mod:`sklearn.model_selection._search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function from __future__ import division # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas...
bsd-3-clause
iaklampanos/bde-pilot-2
backend/api_methods.py
1
39958
""" CLASS INFO --------------------------------------------------------------------------- This class acts as the model (from MVC framework) for the SC5 #3 pilot. --------------------------------------------------------------------------- """ from Dataset_transformations import Dataset_transformations from...
apache-2.0
drogenlied/qudi
logic/pulsed_measurement_logic.py
1
61802
# -*- coding: utf-8 -*- """ This file contains the Qudi logic which controls all pulsed measurements. Qudi 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 ...
gpl-3.0
kevin-intel/scikit-learn
sklearn/multioutput.py
3
30113
""" This module implements multioutput regression and classification. The estimators provided in this module are meta-estimators: they require a base estimator to be provided in their constructor. The meta-estimator extends single output estimators to multioutput estimators. """ # Author: Tim Head <betatim@gmail.com>...
bsd-3-clause
manahl/arctic
tests/unit/store/test_version_store.py
1
32082
import datetime from datetime import datetime as dt, timedelta as dtd import bson import pymongo import pytest from bson import ObjectId from mock import patch, MagicMock, sentinel, create_autospec, Mock, call from pymongo import ReadPreference from pymongo.collection import Collection from pymongo.errors import Opera...
lgpl-2.1
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_local_test (u-PC's conflicted copy 2015-04-15).py
1
43559
# 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
peterbarker/MAVProxy
MAVProxy/mavproxy.py
1
39958
#!/usr/bin/env python ''' mavproxy - a MAVLink proxy program Copyright Andrew Tridgell 2011 Released under the GNU GPL version 3 or later ''' import sys, os, time, socket, signal import fnmatch, errno, threading import serial, Queue, select import traceback import select import shlex from MAVProxy.modules.lib impor...
gpl-3.0
jesuscript/topo-mpi
contrib/JanA/LSCSMNEW.py
1
54397
from scipy.optimize import fmin_ncg, anneal, fmin_cg, fmin_bfgs, fmin_tnc, fmin_l_bfgs_b import __main__ import numpy import pylab import sys sys.path.append('/home/jan/Theano/') import theano theano.config.floatX='float32' #theano.config.warn.sum_sum_bug=False from theano import tensor as T from theano import functio...
bsd-3-clause
kevinnguyeneng/django-uwsgi-nginx
app/naf_autoticket/Modules/EventFilter.py
1
32347
# -*- coding: utf-8 -*- __author__ = 'admin' from naf_autoticket.models import AlertInfo, IssueLogDB, IncidentQueue from exceptions import * import json import os import time import string import pandas as pd from django.core import serializers from django.db.models import Q from django.db import IntegrityEr...
gpl-3.0
dialounke/pylayers
pylayers/measures/mesmimo.py
1
33895
#!/usr/bin/python #-*- coding:Utf-8 -*- from __future__ import print_function from pylayers.signal.bsignal import * from pylayers.antprop.aarray import * from pylayers.util.project import * from pylayers.antprop.channel import * from pylayers.gis.readvrml import * import numpy as np import matplotlib.pylab as plt impor...
mit
GlobalEcologyLab/SARDM
MpFileExtractorAndGeneratorHelper.py
1
99594
# Python modules import pickle import re import string from os import listdir, mkdir, path from shutil import copyfile from StringIO import StringIO from time import time, localtime, strftime # Python extension modules (requires extension installations) import numpy as np import pandas as pd from patsy.bui...
gpl-3.0
NixaSoftware/CVis
venv/lib/python2.7/site-packages/pandas/tests/frame/test_reshape.py
1
31676
# -*- coding: utf-8 -*- from __future__ import print_function from warnings import catch_warnings from datetime import datetime import itertools import pytest from numpy.random import randn from numpy import nan import numpy as np from pandas.compat import u from pandas import (DataFrame, Index, Series, MultiIndex...
apache-2.0
wchan/tensorflow
speech4/models/speech.py
1
55358
#!/usr/bin/env python import google import itertools import math import matplotlib matplotlib.use('Agg') import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np import os.path import random import sys import string import time import tensorflow as tf from tensorflow.core.framework i...
apache-2.0
astraw/stdeb
stdeb/util.py
1
65098
# # This module contains most of the code of stdeb. # import calendar import os import re import select import shutil import sys import time import codecs try: # Python 2.x import ConfigParser except ImportError: # Python 3.x import configparser as ConfigParser import subprocess import tempfile import s...
mit
BiaDarkia/scikit-learn
sklearn/ensemble/weight_boosting.py
3
41145
"""Weight Boosting This module contains weight boosting estimators for both classification and regression. The module structure is the following: - The ``BaseWeightBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regression and classification only differ from each ot...
bsd-3-clause
aemerick/galaxy_analysis
analysis/PDF.py
1
37448
from galaxy_analysis.plot.plot_styles import * rc('font', size=22)#, ftype=42) import yt import numpy as np from copy import copy import sys import deepdish as dd from scipy.optimize import brentq from galaxy_analysis.utilities import utilities import h5py from galaxy_analysis.utilities import functions import matplo...
mit
mattdavie/UCLESreduction
RADIUS_V7b.py
1
142088
import numpy as np from astropy.io import fits as pyfits from scipy import ndimage from scipy.ndimage.filters import maximum_filter1d as maxfilt from scipy.io import readsav import os import scipy.interpolate as scin from scipy.linalg import solve_banded import scipy.ndimage.filters as filters from scipy.linalg.fblas i...
cc0-1.0
armgilles/open-moulinette
insee/mk_data.py
1
45705
# -*- coding: utf-8 -*- import pandas as pd from comparison import compare_geo, fillna_with_other_table print "Initialisation..." ############################################################ #### FUNCIONS ############################################################ def _check_data(data, file_nam...
mit
ahaberlie/MetPy
tests/calc/test_calc_tools.py
1
61073
# Copyright (c) 2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Test the `tools` module.""" from collections import namedtuple import cartopy.crs as ccrs import numpy as np import numpy.ma as ma import pandas as pd import pyte...
bsd-3-clause
Kadenze/siamese_net
siamese_net.py
1
82995
# -*- coding: utf-8 -*- """Siamese Network for performing training of a Deep Convolutional Network for Face Verification on the Olivetti and LFW Faces datasets. Dependencies: python 3.4+, numpy>=1.10.4, sklearn>=0.17, scipy>=0.17.0, theano>=0.7.0, lasagne>=0.1, cv2, dlib>=18.18 (only required if using the 'trees' cro...
apache-2.0
architecture-building-systems/CityEnergyAnalyst
cea/demand/building_properties.py
1
51616
""" Classes of building properties """ import numpy as np import pandas as pd from geopandas import GeoDataFrame as Gdf from datetime import datetime from collections import namedtuple from cea.constants import HOURS_IN_YEAR from cea.demand import constants from cea.demand.sensible_loads import calc_hr, calc_hc from c...
mit
snowflakedb/snowflake-connector-python
test/integ/pandas/test_arrow_pandas.py
1
33203
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import decimal import itertools import random import time from datetime import datetime from decimal import Decimal import numpy import pytest try: from snowflake.connector.options import insta...
apache-2.0
jreback/pandas
pandas/tests/arithmetic/test_period.py
1
56236
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for Period dtype import operator import numpy as np import pytest from pandas._libs.tslibs import IncompatibleFrequency, Period, Timestamp, to_offset from pandas.errors import PerformanceWarning import pandas...
bsd-3-clause
DailyActie/Surrogate-Model
01-codes/scipy-master/scipy/integrate/_bvp.py
1
39982
"""Boundary value problem solver.""" from __future__ import division, print_function, absolute_import from warnings import warn import numpy as np from numpy.linalg import pinv from scipy.optimize import OptimizeResult from scipy.sparse import coo_matrix, csc_matrix from scipy.sparse.linalg import splu EPS = np.finf...
mit
janscience/thunderfish
thunderfish/eodanalysis.py
1
95701
""" Analysis of EOD waveforms. ## EOD waveform analysis - `eod_waveform()`: compute an averaged EOD waveform. - `analyze_wave()`: analyze the EOD waveform of a wave fish. - `analyze_pulse()`: analyze the EOD waveform of a pulse fish. - `adjust_eodf()`: adjust EOD frequencies to a standard temperature. ## Similarity ...
gpl-3.0
othercriteria/StochasticBlockmodel
Models.py
1
77060
#!/usr/bin/env python # Models for generating and fitting networks # Daniel Klein, 5/11/2012 from __future__ import division import numpy as np import scipy.optimize as opt from scipy.stats import norm from scipy.linalg import inv, solve from time import time from itertools import permutations from Utility import lo...
mit
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_New_server_test_0514.py
1
45710
# 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
mlassnig/pilot
SiteInformation.py
1
104070
# Class definition: # SiteInformation # This class is responsible for downloading, verifying and manipulating queuedata # Note: not compatible with Singleton Design Pattern due to the subclassing import os import re import commands import random import time import urlparse import urllib2 from datetime import dat...
apache-2.0
toobaz/pandas
pandas/tests/io/test_html.py
1
39374
from functools import partial from importlib import reload from io import BytesIO, StringIO import os import re import threading import numpy as np from numpy.random import rand import pytest from pandas.compat import is_platform_windows from pandas.errors import ParserError import pandas.util._test_decorators as td ...
bsd-3-clause
johnsmithm/dm
tensorflow/run.py
1
37146
from __future__ import absolute_import, division, print_function import cv2 import argparse import json import os import pickle import math import numpy as np from pyimagesearch.transform import four_point_transform from pyimagesearch import imutils from sklearn.cluster import KMeans import tensorflow as tf import ope...
gpl-2.0
gfyoung/pandas
pandas/tests/dtypes/test_dtypes.py
1
38539
import re import numpy as np import pytest import pytz from pandas.core.dtypes.base import registry from pandas.core.dtypes.common import ( is_bool_dtype, is_categorical, is_categorical_dtype, is_datetime64_any_dtype, is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, ...
bsd-3-clause
BiaDarkia/scikit-learn
sklearn/svm/classes.py
1
46817
import warnings import numpy as np from .base import _fit_liblinear, BaseSVC, BaseLibSVM from ..base import BaseEstimator, RegressorMixin, OutlierMixin from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ LinearModel from ..utils import check_X_y from ..utils.validation import _num_samples fro...
bsd-3-clause
jreback/pandas
pandas/core/tools/datetimes.py
1
32563
from collections import abc from datetime import datetime from functools import partial from itertools import islice from typing import ( TYPE_CHECKING, Callable, List, Optional, Tuple, TypeVar, Union, overload, ) import warnings import numpy as np from pandas._libs import tslib from p...
bsd-3-clause
pyrrho314/recipesystem
trunk/gempy/scripts/cleanir.py
1
47708
#!/usr/bin/env python # # 2007 Jul 8 - Andrew W Stephens - alpha version # 2007 Jul 9 - AWS - beta version # 2007 Jul 10 - AWS - move most operations to cleanquad function # 2007 Jul 11 - AWS - use stddev to decide whether to keep orig quad # 2007 Jul 14 - AWS - generalized code to allow different pattern sizes # 200...
mpl-2.0
crazyyoung01/vv
vn.datayes/api.py
1
44331
#encoding: UTF-8 import os import json import time import requests import pymongo import pandas as pd from datetime import datetime, timedelta from Queue import Queue, Empty from threading import Thread, Timer from pymongo import MongoClient from requests.exceptions import ConnectionError from errors import (VNPAST_C...
mit
DTOcean/dtocean-core
dtocean_core/utils/maintenance.py
1
61055
# -*- coding: utf-8 -*- # Copyright (C) 2016-2018 Mathew Topper # # 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...
gpl-3.0
catalyst-cooperative/pudl
src/pudl/transform/eia861.py
1
92594
"""Module to perform data cleaning functions on EIA861 data tables. All transformations include: - Replace . values with NA. """ import logging import pandas as pd import pudl from pudl import constants as pc logger = logging.getLogger(__name__) BA_ID_NAME_FIXES = ( pd.DataFrame([ # report_date, util...
mit
zfrenchee/pandas
pandas/tests/generic/test_generic.py
2
35620
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from copy import copy, deepcopy from warnings import catch_warnings import pytest import numpy as np import pandas as pd from pandas.core.dtypes.common import is_scalar from pandas import (Series, DataFrame, Panel, date_range, Panel4D, ...
bsd-3-clause
Stargrazer82301/CAAPR
CAAPR/CAAPR_IO/CAAPR_IO.py
1
42977
# Import smorgasbord import os import sys sys.path.insert(0, '../') import gc import pdb import time import csv import shutil import multiprocessing as mp import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import astropy astropy.log.setLevel('ERROR') import astrop...
mit
kwschultz/vq
PyVQ/pyvq/pyvq.py
1
208427
#!/usr/bin/env python from __future__ import print_function ## NOTE: If you edit this, set your "tab" to be 4 spaces in your text editor. import math import sys import argparse import quakelib import gc import operator import os scipy_available = True try: import scipy.stats except ImportError: scipy_availa...
mit
sserrot/champion_relationships
venv/Lib/site-packages/IPython/core/completer.py
1
73227
"""Completion for IPython. This module started as fork of the rlcompleter module in the Python standard library. The original enhancements made to rlcompleter have been sent upstream and were accepted as of Python 2.3, This module now support a wide variety of completion mechanism both available for normal classic P...
mit
RPGOne/Skynet
numpy-master/numpy/core/tests/test_multiarray.py
1
249647
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import functools import ctypes import os import gc if sys.version_info[0] >= 3: import builtins else: import __builtin__ as bui...
bsd-3-clause
TinghuiWang/pyActLearn
pyActLearn/graphs/event_analysis.py
1
37651
import sys import logging import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from matplotlib.patches import Rectangle logger = logging.getLogger(__name__) recall_scoring_labels = ['Correct', 'Fragmenting', 'Underfill-B', 'Underfill-E', 'Deletion'] fpr_scoring_labels = ['C...
bsd-3-clause
meteoswiss-mdr/precipattractor
pyscripts/growth_errors_nans.py
1
39057
#!/usr/bin/env python from __future__ import division from __future__ import print_function import argparse import numpy as np import pandas as pd import sys import os import matplotlib as mpl #mpl.use('Agg') from matplotlib import ticker import matplotlib.pyplot as plt import matplotlib.colors as colors import matpl...
gpl-3.0
mrooney/mintapi
mintapi/api.py
1
57492
import atexit from datetime import date, datetime, timedelta import io import json import logging import os import os.path import random import re import requests import subprocess from sys import platform as _platform import time import zipfile import imaplib import email import email.header import sys # DEBUG import...
mit
xhochy/arrow
python/pyarrow/tests/test_pandas.py
1
155305
# 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
Stargrazer82301/ChrisFit
Old/ChrisFit.py
1
40145
# Import smorgasbord from __future__ import division from __future__ import print_function import sys import os if sys.version_info[0] >= 3: from builtins import str from builtins import range from past.utils import old_div current_module = sys.modules[__name__] sys.path.append(str(os.path.split(os.path.dir...
mit
jniediek/mne-python
mne/viz/utils.py
1
58956
"""Utility functions for plotting M/EEG data """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # ...
bsd-3-clause
tritemio/FRETBursts
fretbursts/burstlib.py
1
134993
# # FRETBursts - A single-molecule FRET burst analysis toolkit. # # Copyright (C) 2013-2016 The Regents of the University of California, # Antonino Ingargiola <tritemio@gmail.com> # """ This module contains all the main FRETBursts analysis functions. `burstslib.py` defines the fundamental object `Data()`...
gpl-2.0
boomsbloom/dtm-fmri
DTM/for_gensim/lib/python2.7/site-packages/matplotlib/dviread.py
1
33321
""" An experimental module for reading dvi files output by TeX. Several limitations make this not (currently) useful as a general-purpose dvi preprocessor, but it is currently used by the pdf backend for processing usetex text. Interface:: dvi = Dvi(filename, 72) # iterate over pages (but only one page is support...
mit
linebp/pandas
pandas/io/stata.py
1
84072
""" Module contains tools for processing Stata files into DataFrames The StataReader below was originally written by Joe Presbrey as part of PyDTA. It has been extended and improved by Skipper Seabold from the Statsmodels project who also developed the StataWriter and was finally added to pandas in a once again improv...
bsd-3-clause
TaxIPP-Life/Til
til/data/data/Patrimoine.py
1
41751
# -*- 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
MiladHooshyar/DrainageNetworkExtraction
DrainageNetworkExtraction/Valley_Fun.py
1
71690
import arcpy from arcpy import env from arcpy.sa import * import numpy as np import scipy from scipy import ndimage, sparse from scipy.stats import norm import itertools import math import os import matplotlib.pyplot as pl arcpy.CheckOutExtension("Spatial") def segment_size_curvature(curve_Array): min_c = np.nan...
mit
brclark-usgs/flopy
flopy/utils/util_list.py
1
43216
""" util_list module. Contains the mflist class. This classes encapsulates modflow-style list inputs away from the individual packages. The end-user should not need to instantiate this class directly. some more info """ from __future__ import division, print_function import os import warnings i...
bsd-3-clause