repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
renatoGarcia/tangram | tangram/input_states.py | 1 | 88385 | # Copyright 2017 The Tangram Developers. See the AUTHORS file at the
# top-level directory of this distribution and at
# https://github.com/renatoGarcia/tangram/blob/master/AUTHORS.
#
# This file is part of Tangram.
#
# Tangram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Less... | lgpl-3.0 |
cython-testbed/pandas | pandas/core/indexes/category.py | 1 | 30077 | import operator
import numpy as np
from pandas._libs import index as libindex
from pandas import compat
from pandas.compat.numpy import function as nv
from pandas.core.dtypes.generic import ABCCategorical, ABCSeries
from pandas.core.dtypes.dtypes import CategoricalDtype
from pandas.core.dtypes.common import (
is_... | bsd-3-clause |
sadol/voltlog | mainGUI.py | 1 | 31820 | #!/usr/bin/env python
import tkinter as tk
from tkinter import ttk
import Pyro4
import libs.stylesDict as st
from tkinter import messagebox
import logging
import time
import datetime
import threading
from tkinter import filedialog as fdi
import os
import pickle
from tkinter import TclError
from collections import deque... | gpl-2.0 |
WarrenWeckesser/numpy | numpy/lib/histograms.py | 2 | 39865 | """
Histogram-related functions
"""
import contextlib
import functools
import operator
import warnings
import numpy as np
from numpy.core import overrides
__all__ = ['histogram', 'histogramdd', 'histogram_bin_edges']
array_function_dispatch = functools.partial(
overrides.array_function_dispatch, module='numpy')
... | bsd-3-clause |
TomAugspurger/pandas | pandas/io/parsers.py | 1 | 129263 | """
Module contains tools for processing files into DataFrames or other objects
"""
from collections import abc, defaultdict
import csv
import datetime
from io import StringIO, TextIOWrapper
import itertools
import re
import sys
from textwrap import fill
from typing import Any, Dict, Iterable, List, Optional, Sequence... | bsd-3-clause |
google/burst-denoising | py_image.py | 1 | 30597 | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
erikness/AlephOne | zipline/algorithm.py | 1 | 39104 | #
# Copyright 2014 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 |
accpy/accpy | accpy/visualize/plot.py | 1 | 31360 | # -*- coding: utf-8 -*-
''' accpy.visualize.plot
author: felix.kramer(at)physik.hu-berlin.de
'best' : 0, (only implemented for axes legends)
'upper right' : 1,
'upper left' : 2,
'lower left' : 3,
'lower right' : 4,
'right' : 5,
'center left' : 6,
'center right' : 7,
'lower center' : 8,
'upper... | gpl-3.0 |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/preprocessing/tests/test_data.py | 1 | 58061 | # Authors:
#
# Giorgio Patrini
#
# License: BSD 3 clause
import warnings
from distutils.version import LooseVersion
import numpy as np
import numpy.linalg as la
from scipy import sparse
from sklearn import datasets
from sklearn.exceptions import DataConversionWarning
from sklearn.preprocessing.data import Bi... | mit |
roshantha9/AbstractManycoreSim | src/analyse_results/AnalyseResults_Exp_RemappingBasic_CCPRM_compare_MultiSeed.py | 1 | 76769 | import sys, os, csv, pprint, math
from collections import OrderedDict
import numpy as np
import random
import shutil
import math
## uncomment when running under CLI only version ##
#import matplotlib
#matplotlib.use('Agg')
import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.gridspec as gridspec
import mat... | gpl-3.0 |
rdussurget/py-altimetry | altimetry/tools/altimetry_tools.py | 1 | 31527 | # -*- coding: utf-8 -*-
import numpy as np
try:
import seawater.gibbs
except ImportError, e:
pass # module doesn't exist, deal with it.
from altimetry.tools import deriv, calcul_distance, interp1d, loess
if __debug__ : import matplotlib.pyplot as plt
def track_orient(x,y,orient=False):
# ;Calculate... | lgpl-3.0 |
wesm/arrow | python/pyarrow/tests/test_flight.py | 1 | 64778 | # 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 |
jan-matthis/autohmm | autohmm/tm.py | 1 | 32864 | from __future__ import division, print_function, absolute_import
import string
import warnings
from scipy import linalg
from scipy import stats
from scipy.stats import norm
import scipy.sparse as sp
from sklearn import cluster
from sklearn.utils import check_random_state
from sklearn.mixture import sample_gaussian
... | bsd-2-clause |
AlexanderWard1/VC3D | Flat Plate/addViscous.py | 1 | 55506 | #%% addViscous.py
"""
Viscous correction code to amend Cart3D solutions based on streamline running
length.
Alexander Ward
April 2017
"""
from math import exp, log, asin
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from scipy.optimize import brentq
import time as time
#... | mit |
blab/nextflu | augur/src/tree_titer.py | 1 | 41836 | # clean, reroot, ladderize newick tree
# output to tree.json
import numpy as np
import time, os, gzip
from collections import defaultdict
from matplotlib import pyplot as plt
from itertools import izip
from virus_filter import fix_name
import pandas as pd
from diagnostic_figures import fs, fmts, figheight
def myopen(f... | agpl-3.0 |
gibbons/scikit-rf | skrf/network.py | 1 | 134006 | '''
.. module:: skrf.network
========================================
network (:mod:`skrf.network`)
========================================
Provides a n-port network class and associated functions.
Most of the functionality in this module is provided as methods and
properties of the :class:`Network` Class.
Networ... | bsd-3-clause |
OPM/ResInsight | ThirdParty/Ert/python/ecl/summary/ecl_sum.py | 1 | 58479 | # Copyright (C) 2011 Equinor ASA, Norway.
#
# The file 'ecl_sum.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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... | gpl-3.0 |
snorfalorpagus/pywr | tests/test_recorders.py | 1 | 59173 | # -*- coding: utf-8 -*-
"""
Test the Recorder object API
"""
from __future__ import print_function
import pywr.core
from pywr.core import Model, Input, Output, Scenario, AggregatedNode
import numpy as np
import pandas
import pytest
import tables
import json
from numpy.testing import assert_allclose, assert_equal
from ... | gpl-3.0 |
chrsrds/scikit-learn | sklearn/decomposition/online_lda.py | 2 | 30033 | """
=============================================================
Online Latent Dirichlet Allocation with variational inference
=============================================================
This implementation is modified from Matthew D. Hoffman's onlineldavb code
Link: https://github.com/blei-lab/onlineldavb
"""
# ... | bsd-3-clause |
euri10/zipline | zipline/assets/assets.py | 1 | 31185 | #
# Copyright 2015 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 |
gemelkelabs/timing_system_software | server_py_files/instrument/roper_ccd.py | 1 | 76928 | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is three tries at running the Princeton camera - 1) with Micromanager, which
is able to do everything but set the trigger mode 2) use of the pvcam dll using the odemis library, which fails
for the same reason - the trigger mode is read-only through pvcam (guessing microma... | mit |
omeed-maghzian/mtag | mtag.py | 1 | 81059 | #!/usr/bin/env python
'''
'''
from __future__ import division
from __future__ import absolute_import
import numpy as np
import pandas as pd
import scipy.optimize
import argparse
import itertools
import time
import os, re
import joblib
import sys, gzip, bz2
import logging
from argparse import Namespace
... | gpl-3.0 |
apdjustino/urbansim | urbansim/models/dcm.py | 1 | 70829 | """
Use the ``MNLDiscreteChoiceModel`` class to train a choice module using
multinomial logit and make subsequent choice predictions.
"""
from __future__ import print_function, division
import abc
import logging
import numpy as np
import pandas as pd
from patsy import dmatrix
from prettytable import PrettyTable
from... | bsd-3-clause |
dsm054/pandas | pandas/tests/scalar/period/test_asfreq.py | 1 | 36946 | import pytest
from pandas.errors import OutOfBoundsDatetime
import pandas as pd
from pandas import Period, offsets
from pandas.util import testing as tm
from pandas._libs.tslibs.frequencies import _period_code_map
class TestFreqConversion(object):
"""Test frequency conversion of date objects"""
@pytest.mark... | bsd-3-clause |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/tests/test_gbq.py | 1 | 34342 | import re
from datetime import datetime
import nose
import pytz
import platform
from time import sleep
import numpy as np
from distutils.version import StrictVersion
from pandas import compat
from pandas import NaT
from pandas.compat import u, range
from pandas.core.frame import DataFrame
import pandas.io.gbq as gbq... | mit |
chunweiyuan/xarray | xarray/backends/api.py | 1 | 41127 | import os.path
import warnings
from glob import glob
from io import BytesIO
from numbers import Number
from pathlib import Path
import numpy as np
from .. import Dataset, backends, conventions
from ..core import indexing
from ..core.combine import (
_CONCAT_DIM_DEFAULT, _auto_combine, _infer_concat_order_from_pos... | apache-2.0 |
nasa-gibs/onearth | src/generate_legend/oe_generate_legend.py | 1 | 39173 | #!/usr/bin/env python3
# Copyright (c) 2002-2016, California Institute of Technology.
# All rights reserved. Based on Government Sponsored Research under contracts NAS7-1407 and/or NAS7-03001.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi... | apache-2.0 |
zasdfgbnm/tensorflow | tensorflow/contrib/metrics/python/ops/metric_ops_test.py | 1 | 270150 | # Copyright 2016 The TensorFlow Authors. 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
BiaDarkia/scikit-learn | sklearn/linear_model/least_angle.py | 7 | 58485 | """
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 |
jzuhone/spectral-cube | spectral_cube/spectral_cube.py | 1 | 161308 | """
A class to represent a 3-d position-position-velocity spectral cube.
"""
from __future__ import print_function, absolute_import, division
import warnings
from functools import wraps
import operator
import re
import itertools
import copy
import tempfile
import textwrap
from pathlib import PosixPath
import six
from... | bsd-3-clause |
CamDavidsonPilon/PyProcess | pyprocess/pyprocess.py | 1 | 73110 | from __future__ import division
"""
PyProcess
@author: Cameron Davidson-Pilon
"""
import numpy as np
import scipy as sp
import scipy.stats as stats
from scipy.special import gammainc
import warnings
import matplotlib.pyplot as plt
import pdb
np.seterr( divide="raise")
#TODO change all generate_ to sample_
class ... | mit |
dsm054/pandas | pandas/tests/groupby/test_groupby.py | 1 | 54265 | # -*- coding: utf-8 -*-
from __future__ import print_function
import pytest
from datetime import datetime
from decimal import Decimal
from pandas import (date_range, Timestamp,
Index, MultiIndex, DataFrame, Series,
Panel, DatetimeIndex, read_csv)
from pandas.errors import Perf... | bsd-3-clause |
dmnfarrell/peat | PEATDB/Ekin/Titration.py | 1 | 76391 | #!/usr/bin/env python
#
# Protein Engineering Analysis Tool DataBase (PEATDB)
# Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen
#
# 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 ver... | mit |
RRCKI/panda-jedi | pandajedi/jedicore/JediDBProxy.py | 1 | 516445 | import re
import os
import sys
import copy
import math
import types
import numpy
import random
import datetime
import traceback
import cx_Oracle
from pandajedi.jediconfig import jedi_config
from pandaserver import taskbuffer
import taskbuffer.OraDBProxy
from pandaserver.taskbuffer import JobUtils
from pandaserver.tas... | apache-2.0 |
boomsbloom/dtm-fmri | DTM/for_gensim/lib/python2.7/site-packages/matplotlib/tests/test_triangulation.py | 1 | 41837 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from matplotlib.externals import six
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.tri as mtri
from nose.tools import assert_equal, assert_raises, assert_true, assert_false
from numpy.te... | mit |
BryanCutler/spark | python/pyspark/pandas/internal.py | 1 | 57118 | #
# 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 us... | apache-2.0 |
graphistry/pygraphistry | graphistry/tests/test_plotter.py | 1 | 42262 | # -*- coding: utf-8 -*-
import copy, datetime as dt, graphistry, IPython, os, pandas as pd, pyarrow as pa, pytest
from common import NoAuthTestCase
from mock import patch
from graphistry.tests.test_hyper_dask import assertFrameEqualDask
maybe_cudf = None
if 'TEST_CUDF' in os.environ and os.environ['TEST_CUDF'] == '... | bsd-3-clause |
mfouesneau/pyphot | pyphot/phot.py | 1 | 47681 | """
Photometric package
===================
Defines a Filter class and associated functions to extract photometry.
This also include functions to keep libraries up to date
.. note::
integrations are done using :func:`trapz`
Why not Simpsons? Simpsons principle is to take sequence of 3 points to
make a q... | mit |
jluscher/SCANIT | scanit_v031.py | 1 | 67771 | #! /usr/bin/python3
#
# SCANIT - Control A spectrometer and collect data
#
# LICENSE:
# This work is licensed under the Creative Commons Zero License
# Creative Commons CC0.
# To view a copy of this license, visit
# http://directory.fsf.org/wiki/License:CC0
# or send a letter to:
# Creative Commons, PO Box 1866, Mount... | cc0-1.0 |
montoyjh/pymatgen | pymatgen/electronic_structure/plotter.py | 1 | 183052 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import logging
import math
import itertools
import warnings
from collections import OrderedDict
import numpy as np
from monty.json import jsanitize
from pymatgen.core.periodic_table import Element
from pymat... | mit |
great-expectations/great_expectations | tests/render/renderer/v3/test_suite_edit_notebook_renderer.py | 1 | 53667 | import json
import os
import pytest
from nbformat.notebooknode import NotebookNode
from great_expectations import DataContext
# noinspection PyProtectedMember
from great_expectations.cli.suite import _suite_edit_workflow
from great_expectations.core import ExpectationSuiteValidationResult
from great_expectations.cor... | apache-2.0 |
jcmgray/xarray | xarray/tests/test_variable.py | 1 | 77651 |
from __future__ import absolute_import, division, print_function
from collections import namedtuple
from copy import copy, deepcopy
from datetime import datetime, timedelta
from distutils.version import LooseVersion
from textwrap import dedent
import numpy as np
import pandas as pd
import pytest
import pytz
from xa... | apache-2.0 |
AssistiveRoboticsUNH/threespace_ros | scripts/canal_surface_test/classify_window.py | 1 | 31019 | #!/usr/env/python
from __future__ import print_function
import platform
import copy
print(platform.platform())
import sys
print("Python", sys.version)
import numpy as np;
print("NumPy", np.__version__)
import scipy
print("SciPy", scipy.__version__)
import sklearn
print("Scikit-Learn", sklearn.__version__)
import ... | gpl-3.0 |
jougs/nest-simulator | pynest/nest/lib/hl_api_spatial.py | 1 | 45159 | # -*- coding: utf-8 -*-
#
# hl_api_spatial.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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,... | gpl-2.0 |
cmmorrow/sci-analysis | sci_analysis/graphs/vector.py | 1 | 33547 | import warnings
import six
from math import sqrt, fabs
# matplotlib imports
from matplotlib.pyplot import (
show, subplot, yticks, xlabel, ylabel, figure, setp, savefig, close, xticks, subplots_adjust
)
from matplotlib.gridspec import GridSpec
from matplotlib.patches import Circle
# Numpy imports
from numpy impor... | mit |
bmazin/SDR | Projects/FirmwareTests/darkDebug/sbOptimizer.py | 1 | 34106 | import adcSnapCheck as adcSnap
from Roach2Controls import Roach2Controls
import numpy as np
import time, struct, sys, os
import matplotlib.pyplot as plt
import random
import scipy.optimize as spo
class SBOptimizer:
def __init__(self, ip='10.0.0.112', params='/mnt/data0/neelay/MkidDigitalReadout/DataReadout/Channel... | gpl-2.0 |
huzq/scikit-learn | sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py | 3 | 31835 | import numpy as np
import pytest
from numpy.testing import assert_allclose, assert_array_equal
from sklearn.datasets import make_classification, make_regression
from sklearn.datasets import make_low_rank_matrix
from sklearn.preprocessing import KBinsDiscretizer, MinMaxScaler
from sklearn.model_selection import train_te... | bsd-3-clause |
jimmycallin/master-thesis | architectures/conll16st-hd-sdp/sup_parser_v5_hierarchy_cnn_cross.py | 1 | 45847 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Sample Discourse Relation Classifier Train
Train parser for suplementary evaluation
Train should take three arguments
$inputDataset = the folder of the dataset to parse.
The folder structure is the same as in the tar file
$inputDataset/parses.json
$inputDataset... | mit |
datapythonista/pandas | pandas/tests/scalar/period/test_period.py | 3 | 54989 | from datetime import (
date,
datetime,
timedelta,
)
import numpy as np
import pytest
import pytz
from pandas._libs.tslibs import (
iNaT,
period as libperiod,
)
from pandas._libs.tslibs.ccalendar import (
DAYS,
MONTHS,
)
from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime
from p... | bsd-3-clause |
perryjohnson/biplaneblade | lib/blade.py | 1 | 95621 | """A module for organizing geometrical data for a blade definition.
Note: to generate html documentation of this module, open a Windows cmd prompt:
> cd path/to/lib
> python -m pydoc -w blade
Then, open path/to/lib/blade.html in a browser.
Refs:
https://docs.python.org/2.7/library/pydoc.html
http://bytes.com/t... | gpl-3.0 |
soumide1102/pycbc | pycbc/inference/likelihood.py | 1 | 42963 | # Copyright (C) 2016 Collin Capano
# 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 is distributed in t... | gpl-3.0 |
olafhauk/mne-python | mne/viz/utils.py | 1 | 88098 | # -*- coding: utf-8 -*-
"""Utility functions for plotting 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 <mainak... | bsd-3-clause |
koyadovic/Dia | predictive/systems/statistical/analysis/groupings/grouped_feedings.py | 1 | 36176 | # -*- coding: utf-8 -*-
from ...tools.dates import Timedelta, Datetime
from ...tools.shapes import Shape
from ...analysis.groupings.shape_feedings import ShapeFeeding
from ...analysis.groupings.shape_insulins import ShapeInsulin
from ...analysis.bundles.basics import BasicGathering
from ...analysis.basics.daytimes i... | gpl-2.0 |
QuLogic/cartopy | lib/cartopy/mpl/geoaxes.py | 1 | 87678 | # Copyright Cartopy Contributors
#
# This file is part of Cartopy and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
This module defines the :class:`GeoAxes` class, for use with matplotlib.
When a Matplotlib figure contains a GeoAxe... | lgpl-3.0 |
carefree0910/MachineLearning | _Dist/NeuralNetworks/DistBase.py | 1 | 90776 | import os
import sys
root_path = os.path.abspath("../../")
if root_path not in sys.path:
sys.path.append(root_path)
import time
import math
import random
import pickle
import shutil
import logging
import itertools
import collections
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
tf.log... | mit |
wheeler-microfluidics/teensy-minimal-rpc | teensy_minimal_rpc/adc_sampler.py | 1 | 51254 | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import absolute_import
import datetime as dt
import io
import pkgutil
import weakref
from six.moves import range
import arduino_helpers.hardware.teensy as teensy
import arduino_helpers.hardware.teensy.adc as adc
import arduino_helpers.hardware.tee... | gpl-3.0 |
GGiecold/ECLAIR | src/ECLAIR/Statistical_performance/Statistical_tests.py | 1 | 59123 | #!/usr/bin/env python
# ECLAIR/src/ECLAIR/Statistics/Statistical_tests.py;
# Author: Gregory Giecold for the GC Yuan Lab
# Affiliation: Harvard University
# Contact: g.giecold@gmail.com; ggiecold@jimmy.harvard.edu
"""ECLAIR is a package for the robust and scalable
inference of cell lineages from gene expression d... | mit |
materialsproject/pymatgen | pymatgen/electronic_structure/plotter.py | 1 | 184870 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements plotter for DOS and band structure.
"""
import copy
import itertools
import logging
import math
import warnings
from collections import Counter, OrderedDict
import matplotlib.lines a... | mit |
QuentinAndre/pyprocessmacro | pyprocessmacro/models.py | 1 | 71278 | # -*- coding: utf-8 -*-
import warnings
from functools import partial
from itertools import product, combinations
import numpy as np
import pandas as pd
import scipy.stats as stats
from numpy import dot
from numpy.linalg import inv, LinAlgError
from .utils import (
fast_OLS,
fast_optimize,
b... | mit |
briney/abstar | abstar/core/abstar.py | 1 | 52798 | #!/usr/bin/env python
# filename: abstar.py
#
# Copyright (c) 2015 Bryan Briney
# License: The MIT license (http://opensource.org/licenses/MIT)
#
# 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 Softwar... | mit |
cajal/pipeline | python/pipeline/meso.py | 1 | 92681 | """ Schemas for mesoscope scans."""
import datajoint as dj
from datajoint.jobs import key_hash
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scanreader
from . import experiment, injection, notify, shared
from .utils import galvo_corrections, signal, quality, mask_classification, perform... | lgpl-3.0 |
Rinoahu/fastclust | deprecate/py27/bin/deprecate/mcl_sparse.py | 1 | 279778 | #!usr/bin/env python
import scipy as np
from scipy import sparse
from scipy.sparse import csgraph
from scipy import stats
import sys
from time import time
import os
import gc
from struct import pack, unpack
from math import sqrt
import mimetypes
import gzip
import bz2 as bzip2
import bz2
from itertools import izip
#imp... | gpl-3.0 |
ChenglongChen/Kaggle_HomeDepot | Code/Igor&Kostia/feature_extraction1.py | 1 | 106778 | # -*- coding: utf-8 -*-
"""
Generate features.
Competition: HomeDepot Search Relevance
Author: Igor Buinyi
Team: Turing test
"""
from config_IgorKostia import *
import numpy as np
import pandas as pd
from time import time
import re
import csv
import os
import nltk
from nltk.corpus import wordnet as wn
from nltk.corp... | mit |
xuewei4d/scikit-learn | sklearn/calibration.py | 4 | 31909 | """Calibration of predicted probabilities."""
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Balazs Kegl <balazs.kegl@gmail.com>
# Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# Mathieu Blondel <mathieu@mblondel.org>
#
# License: BSD 3 clause
import warnings
from... | bsd-3-clause |
dusenberrymw/deep-histopath | preprocess_mitoses.py | 1 | 50622 | """Preprocessing - mitosis detection"""
import argparse
import glob
import json
import math
import os
import shutil
import sys
import numpy as np
from PIL import Image
from sklearn.model_selection import train_test_split
import tensorflow as tf
from train_mitoses import normalize
#from deephistopath.inference import ... | apache-2.0 |
ikaee/bfr-attendant | facerecognitionlibrary/jni-build/jni/include/tensorflow/contrib/learn/python/learn/estimators/estimator.py | 2 | 54350 | # Copyright 2016 The TensorFlow Authors. 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
cassandra-sh/corrset | mpi_read.py | 1 | 43091 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mpi_read.py
@author Cassandra Henderson
cassandra.s.henderson@gmail.com
qualifier -> mpi_prep -> mpi_run -> * mpi_read * -> jackknifer
Program Description:
Read the mpi outputs. You'll probably have to download them from wherever
you ran the mpi_run jobs.
... | mit |
dsm054/pandas | pandas/tests/computation/test_eval.py | 1 | 69596 | import warnings
import operator
from itertools import product
import pytest
from numpy.random import randn, rand, randint
import numpy as np
from pandas.core.dtypes.common import is_bool, is_list_like, is_scalar
import pandas as pd
from pandas.errors import PerformanceWarning
from pandas import DataFrame, Series, Pa... | bsd-3-clause |
jhamman/xray | xarray/tests/test_backends.py | 1 | 81552 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from io import BytesIO
from threading import Lock
import contextlib
import itertools
import os.path
import pickle
import shutil
import tempfile
import unittest
import sys
import numpy as np
import pandas as pd
... | apache-2.0 |
melissawm/skprocrustes | skprocrustes/skprocrustes.py | 1 | 124297 | # Solvers for the Weighted Orthogonal Procrustes Problem (WOPP)
# min norm(AXC-B, 'fro')**2
# s.t. X^TX=I
# where A(m,n), B(m,q), C(p,q) and X(n,p). (usually n >> p, which
# means we can solve unbalanced problems.)
#
# Usage:
# >>> import skprocrustes as skp
# >>> problem = skp.ProcrustesProblem((m,n,p,q),
... | bsd-2-clause |
jreback/pandas | pandas/core/dtypes/common.py | 1 | 48459 | """
Common type operations.
"""
from typing import Any, Callable, Union
import warnings
import numpy as np
from pandas._libs import Interval, Period, algos
from pandas._libs.tslibs import conversion
from pandas._typing import ArrayLike, DtypeObj, Optional
from pandas.core.dtypes.base import registry
from pandas.cor... | bsd-3-clause |
jniediek/mne-python | mne/io/fiff/tests/test_raw_fiff.py | 1 | 61439 | # Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
from functools import partial
import glob
import itertools as itt
import os
import os.path as op
import warnings
import numpy as np
from nump... | bsd-3-clause |
dhraskar/IC_Geolit_Grav_python | Core/GRARED.py | 1 | 33665 | # -*- coding: utf-8 -*-
#--------------------------------------------------
#Import das bibliotecas
#--------------------------------------------------
import numpy as np
import pandas as pd
from pandas import ExcelWriter
from pandas import ExcelFile
from tkinter import *
from datetime import datetime
from math import... | mit |
cjayb/mne-python | mne/channels/tests/test_montage.py | 1 | 50635 | # Author: Teon Brooks <teon.brooks@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
from itertools import chain
import os
import os.path as op
import pytest
import numpy as np
from functools import partial
from string import ascii_lowercase
from numpy.testing import (... | bsd-3-clause |
pavanvidem/BlockClust | scripts/blockclust.py | 1 | 35039 | #!/usr/bin/env python
import argparse
import os
import pysam
import sys
from collections import defaultdict
from sklearn.metrics import roc_auc_score
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import f1_score
def... | gpl-3.0 |
ASinanSaglam/westpa | lib/west_tools/w_ipa.py | 1 | 37440 | # Copyright (C) 2017 Matthew C. Zwier and Lillian T. Chong
#
# This file is part of WESTPA.
#
# WESTPA 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 |
thomasyu888/Genie | tests/test_clinical.py | 1 | 31472 | import datetime
import mock
import pytest
import pandas as pd
import synapseclient
from genie.clinical import clinical
def createMockTable(dataframe):
table = mock.create_autospec(synapseclient.table.CsvFileTable)
table.asDataFrame.return_value = dataframe
return(table)
def table_query_results(*args):... | mit |
tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 0.8s/hmm_crossvalidation_force_motion_10_states_scaled_wrt_all_data.py | 1 | 39678 | # Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | mit |
gfyoung/pandas | pandas/tests/reshape/merge/test_merge_asof.py | 1 | 47556 | import datetime
import numpy as np
import pytest
import pytz
import pandas as pd
from pandas import Timedelta, merge_asof, read_csv, to_datetime
import pandas._testing as tm
from pandas.core.reshape.merge import MergeError
class TestAsOfMerge:
def read_data(self, datapath, name, dedupe=False):
path = da... | bsd-3-clause |
aashish24/seaborn | seaborn/tests/test_axisgrid.py | 1 | 35616 | import numpy as np
import pandas as pd
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decorators import skipif
import pandas.util.testing as tm
from .. import axisgrid as... | bsd-3-clause |
anselmobd/fo2 | src/produto/queries/queries.py | 1 | 36141 | import pandas as pd
from pprint import pprint
from django.core.cache import cache
from utils.cache import entkeys
from utils.functions import my_make_key_cache, fo2logger
from utils.functions.models import rows_to_dict_list, rows_to_dict_list_lower
import produto.queries
def produtos_n1_basic(cursor, param):
t... | mit |
CarlosGrohmann/scripts_papers | Grohmann_2015_CAGEO_derivatives.py | 1 | 36506 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#
#
# Testing behaviour of DEM derivatives
# What is best: to calculate derivatives (slope, aspect, curvatures)
# in high resolution and then resample to small resolution
# or resample the DEM to small resolution and then calculate derivatives?
# test in three distinct land... | mit |
adazey/Muzez | libs/nltk/parse/dependencygraph.py | 1 | 31760 | # Natural Language Toolkit: Dependency Grammars
#
# Copyright (C) 2001-2016 NLTK Project
# Author: Jason Narad <jason.narad@gmail.com>
# Steven Bird <stevenbird1@gmail.com> (modifications)
#
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
#
"""
Tools for reading and writing depe... | gpl-3.0 |
RRCKI/pilot | ATLASSiteInformation.py | 1 | 42230 | # Class definition:
# ATLASSiteInformation
# This class is the ATLAS site information class inheriting from SiteInformation
# Instances are generated with SiteInformationFactory via pUtil::getSiteInformation()
# Implemented as a singleton class
# http://stackoverflow.com/questions/42558/python-and-the-singlet... | apache-2.0 |
luismack1997/PrograMate201603126 | Proyecto Final (y largo)/Codigo/Codigo.py | 1 | 45145 | #-*- coding:utf-8 -*-
'''
Created on 4/11/2017
@author: lm_lu
'''
import Tkinter
from PIL import ImageTk, Image
import os
import subprocess
import linecache
import sys
import json
import cPickle as pickle
import smtplib
import numpy as np
import matplotlib.pyplot as plt
from email.mime.text import MIMEText
from email.... | gpl-3.0 |
bryanwweber/PyKED | pyked/chemked.py | 1 | 43883 | """
Main ChemKED module
"""
# Standard libraries
from os.path import exists
from collections import namedtuple
from warnings import warn
from copy import deepcopy
import xml.etree.ElementTree as etree
import xml.dom.minidom as minidom
from itertools import chain
import numpy as np
# Local imports
from .validation imp... | bsd-3-clause |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/imageio/plugins/_tifffile.py | 2 | 232541 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2017, Christoph Gohlke
# Copyright (c) 2008-2017, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or wit... | gpl-3.0 |
nmartensen/pandas | pandas/tests/groupby/test_groupby.py | 1 | 151112 | # -*- coding: utf-8 -*-
from __future__ import print_function
import pytest
from warnings import catch_warnings
from string import ascii_lowercase
from datetime import datetime
from numpy import nan
from pandas import (date_range, bdate_range, Timestamp,
Index, MultiIndex, DataFrame, Series,
... | bsd-3-clause |
aburrell/davitpy | davitpy/pydarn/proc/music/music.py | 2 | 85275 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
#
# 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 |
dsm054/pandas | pandas/tests/indexing/test_multiindex.py | 1 | 51155 | from warnings import catch_warnings
import numpy as np
import pytest
from pandas.errors import PerformanceWarning, UnsortedIndexError
import pandas as pd
from pandas import (
DataFrame, Index, MultiIndex, Panel, Series, Timestamp, date_range)
from pandas.tests.indexing.common import _mklbl
from pandas.util impor... | bsd-3-clause |
andyh616/mne-python | mne/preprocessing/ica.py | 1 | 89879 | # Authors: Denis A. Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Juergen Dammers <j.dammers@fz-juelich.de>
#
# License: BSD (3-clause)
from inspect import getargspec, isfunction
from collections import namedtuple
import os
import json
import n... | bsd-3-clause |
buzmakov/tomography_scripts | misc/reconstructor-v-2.1a.py | 1 | 36458 | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.2'
# jupytext_version: 1.2.3
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# --... | mit |
GuessWhoSamFoo/pandas | pandas/tests/groupby/test_groupby.py | 1 | 55886 | # -*- coding: utf-8 -*-
from __future__ import print_function
from collections import defaultdict
from datetime import datetime
from decimal import Decimal
import numpy as np
import pytest
from pandas.compat import (
OrderedDict, StringIO, lmap, lrange, lzip, map, range, zip)
from pandas.errors import Performanc... | bsd-3-clause |
paninski-lab/yass | src/yass/pipeline.py | 1 | 54636 | """
Built-in pipeline
"""
import time
import logging
import logging.config
import shutil
import os
import matplotlib
matplotlib.use('Agg')
# supress PCA unpickle userwarning
# Cat: TODO: this is dangersous, may wish to fix the problem in cluster.py
# import warnings
# warnings.filterwarnings("ignore", category=UserWa... | apache-2.0 |
jseabold/statsmodels | statsmodels/base/tests/test_data.py | 2 | 35946 | from statsmodels.compat.pandas import assert_series_equal, assert_frame_equal,\
make_dataframe
import numpy as np
from numpy.testing import assert_equal, assert_, assert_raises
import pandas as pd
import pytest
from statsmodels.base import data as sm_data
from statsmodels.formula import handle_formula_data
from s... | bsd-3-clause |
TomAugspurger/pandas | pandas/core/frame.py | 1 | 316325 | """
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 do with the
labeling information
"""
import collections
fr... | bsd-3-clause |
HKV-products-services/hkvfewspy | hkvfewspy/utils/pi_helper.py | 1 | 44546 | from .simplenamespace import *
from ..utils.untangle import parse_raw
import pandas as pd
import geopandas as gpd
from datetime import datetime, timedelta
import pytz
import types
import copy
import ast
import json
from xml.etree.ElementTree import Element, SubElement, Comment
from xml.dom import minidom
from xml.etree... | bsd-3-clause |
toobaz/pandas | pandas/tests/reshape/merge/test_merge_asof.py | 1 | 41459 | import numpy as np
import pytest
import pytz
import pandas as pd
from pandas import Timedelta, merge_asof, read_csv, to_datetime
from pandas.core.reshape.merge import MergeError
from pandas.util.testing import assert_frame_equal
class TestAsOfMerge:
def read_data(self, datapath, name, dedupe=False):
path... | bsd-3-clause |
ghost9023/DeepLearningPythonStudy | DeepLearning/DeepLearning/01_Deep_BaeJH/1주차/1주차. 퍼셉트론-신경망.py | 1 | 67370 | ''''''
'''
딥러닝스터디 1주차: 퍼셉트론과 신경망
◈ 목차
1.퍼셉트론의 개념
1) 퍼셉트론의 개념
2) 가중치
3) 편향
2. 논리회로
1) 논리합과 논리곱
2) AND게이트, NAND게이트, XOR게이트
3. 다층 퍼셉트론
1) 다층 퍼셉트론의 개념
2) 게이트 조합
3) 논리 게이트 구현
4. 단층 신경망
1) 신경망의 개념
2) 활성 함수
3) 다차원 배열의 계산
4) 신경망 구현하기
5) 예제 데이터셋 사용해보기
시작하기에 앞서서 딥러닝과 인공신경망의 정의에 대해 간략하게 알아보면 인공 신경망은 인간의 뇌가 패... | mit |
idaholab/raven | framework/SupervisedLearning/ARMA.py | 1 | 112752 | # Copyright 2017 Battelle Energy Alliance, LLC
#
# 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 t... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.