repo_name stringlengths 6 100 | path stringlengths 4 191 | copies stringlengths 1 3 | size stringlengths 4 6 | content stringlengths 935 727k | license stringclasses 15
values |
|---|---|---|---|---|---|
WangWenjun559/Weiss | summary/sumy/sklearn/ensemble/tests/test_weight_boosting.py | 32 | 15697 | """Testing for the boost module (sklearn.ensemble.boost)."""
import numpy as np
from sklearn.utils.testing import assert_array_equal, assert_array_less
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_raises, assert_rais... | apache-2.0 |
vipullakhani/mi-instrument | mi/core/instrument/file_publisher.py | 5 | 4306 | """
@package mi.core.instrument.publisher
@file /mi-instrument/mi/core/instrument/file_publisher.py
@author Peter Cable
@brief Event file publisher
Release notes:
initial release
"""
import cPickle as pickle
import json
import numpy as np
import pandas as pd
import xarray as xr
from mi.core.instrument.publisher impor... | bsd-2-clause |
18padx08/PPTex | PPTexEnv_x86_64/lib/python2.7/site-packages/matplotlib/backend_bases.py | 10 | 106046 | """
Abstract base classes define the primitives that renderers and
graphics contexts must implement to serve as a matplotlib backend
:class:`RendererBase`
An abstract base class to handle drawing/rendering operations.
:class:`FigureCanvasBase`
The abstraction layer that separates the
:class:`matplotlib.fi... | mit |
costypetrisor/scikit-learn | examples/mixture/plot_gmm_sin.py | 248 | 2747 | """
=================================
Gaussian Mixture Model Sine Curve
=================================
This example highlights the advantages of the Dirichlet Process:
complexity control and dealing with sparse data. The dataset is formed
by 100 points loosely spaced following a noisy sine curve. The fit by
the GMM... | bsd-3-clause |
cpcloud/ibis | ibis/expr/window.py | 1 | 15482 | """Encapsulation of SQL window clauses."""
import functools
from typing import NamedTuple, Union
import numpy as np
import pandas as pd
import ibis.common.exceptions as com
import ibis.expr.operations as ops
import ibis.expr.types as ir
import ibis.util as util
def _sequence_to_tuple(x):
return tuple(x) if uti... | apache-2.0 |
econpy/google-ngrams | getngrams.py | 2 | 6725 | #!/usr/bin/env python
# -*- coding: utf-8 -*
from ast import literal_eval
from pandas import DataFrame # http://github.com/pydata/pandas
import re
import requests # http://github.com/kennethreitz/requests
import subprocess
import sys
corpora = dict(eng_us_2012=17, eng_us_2009=5, eng_gb_2012=18, eng_gb_2... | mit |
gregreen/legacypipe | py/legacypipe/write_initial_catalog.py | 1 | 3639 | from __future__ import print_function
if __name__ == '__main__':
import matplotlib
matplotlib.use('Agg')
import numpy as np
from common import *
from tractor import *
if __name__ == '__main__':
import optparse
parser = optparse.OptionParser()
parser.add_option('-b', '--brick', type=int, help='Bric... | gpl-2.0 |
SuLab/scheduled-bots | scheduled_bots/phenotypes/mitodb_bot.py | 1 | 6364 | import argparse
import json
import os
from datetime import datetime
from itertools import groupby
from time import gmtime, strftime, strptime
import pandas as pd
from tqdm import tqdm
from scheduled_bots import PROPS, ITEMS
from wikidataintegrator import wdi_core, wdi_helpers, wdi_login
from wikidataintegrator.ref_ha... | mit |
pbreach/pysd | tests/unit_test_utils.py | 2 | 7923 | from unittest import TestCase
import xarray as xr
import pandas as pd
from . import test_utils
import doctest
class TestUtils(TestCase):
def test_get_return_elements_subscirpts(self):
from pysd.utils import get_return_elements
self.assertEqual(
get_return_elements(["Inflow A[Entry 1,C... | mit |
mayblue9/scikit-learn | sklearn/datasets/mlcomp.py | 289 | 3855 | # Copyright (c) 2010 Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
"""Glue code to load http://mlcomp.org data as a scikit.learn dataset"""
import os
import numbers
from sklearn.datasets.base import load_files
def _load_document_classification(dataset_path, metadata, set_=None, **kwargs):
if ... | bsd-3-clause |
dpshelio/sunpy | examples/plotting/simple_differential_rotation.py | 1 | 3061 | """
============================
Simple Differential Rotation
============================
The Sun is known to rotate differentially, meaning that the rotation rate
near the poles (rotation period of approximately 35 days) is not the same as
the rotation rate near the equator (rotation period of approximately 25 days)... | bsd-2-clause |
karstenw/nodebox-pyobjc | examples/Extended Application/matplotlib/examples/api/histogram_path.py | 1 | 2441 | """
========================================================
Building histograms using Rectangles and PolyCollections
========================================================
This example shows how to use a path patch to draw a bunch of
rectangles. The technique of using lots of Rectangle instances, or
the faster met... | mit |
eustislab/horton | scripts/horton-entanglement.py | 1 | 7461 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2015 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Licens... | gpl-3.0 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 16