Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
6
96
path
stringlengths
4
191
copies
stringclasses
322 values
size
stringlengths
4
6
content
stringlengths
762
753k
license
stringclasses
15 values
aestrivex/ielu
ielu/plotting_utils.py
1
6230
import os import numpy as np import nibabel as nib from traits.api import HasTraits, Float, Int, Tuple from traitsui.api import View, Item, CSVListEditor from .geometry import get_vox2rasxfm, apply_affine, get_std_orientation from .utils import get_subjects_dir def force_render( figure=None ): from mayavi impor...
gpl-3.0
albu5/deepGroup
group-detection/vis_kernel_affinity.py
1
6897
""" Visualize and save group detections """ from utils import read_cad_frames, read_cad_annotations, get_interaction_features, add_annotation, custom_interaction_features from matplotlib import pyplot as plt from keras.models import Model from keras.layers import Input, Dense from keras.layers.merge import add from k...
mit
MohammedWasim/scikit-learn
sklearn/linear_model/tests/test_base.py
101
12205
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # # License: BSD 3 clause import numpy as np from scipy import sparse from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_equal from sklearn.linear_model....
bsd-3-clause
ibell/coolprop
wrappers/Python/CoolProp/Plots/PsychChart.py
1
5652
""" This file implements a psychrometric chart for air at 1 atm """ import CoolProp HAProps = CoolProp.HumidAirProp.HAProps InlineLabel = CoolProp.Plots.Plots.InlineLabel import matplotlib, numpy, textwrap import_template=( """ import numpy, matplotlib from CoolProp.HumidAirProp import HAProps from CoolProp.Plots.Plo...
mit
ulno/micropython-extra-ulno
examples/plot_log/liveplot2d.py
2
4391
#!/usr/bin/env python3 # tail a file into a plot # # take parameter of filename # # Resources: # - http://stackoverflow.com/questions/11874767/real-time-plotting-in-while-loop-with-matplotlib # - from: https://lethain.com/tailing-in-python/ # # Author: ulno # Create date: 2017-04-30 # import time from optparse import ...
mit
henriquemiranda/yambo-py
tutorial/mos2/proj_mos2.py
2
2428
from __future__ import print_function, division # # Author: Henrique Pereira Coutada Miranda # Example script to plot the weigth of the atomic species in the bandstructure # from qepy import * import sys import argparse import matplotlib.pyplot as plt folder = 'bands' npoints = 20 p = Path([ [[0.0, 0.0, 0.0],'G'], ...
bsd-3-clause
Ichaelus/Github-Classifier
Application/Models/ClassificationModules/metaonlyrandomforest.py
1
2706
#!/usr/bin/env python # -*- coding: utf-8 -*- from Models.FeatureProcessing import * import sklearn from sklearn.ensemble import RandomForestClassifier import numpy as np import abc from ClassificationModule import ClassificationModule class metaonlyrandomforest(ClassificationModule): """A basic Random Forest ...
mit
NicovincX2/Python-3.5
Analyse (mathématiques)/Analyse numérique/Équations différentielles numériques/Méthode des éléments finis/hpfem2d.py
1
6104
# -*- coding: utf-8 -*- """ Program for generating 2D hp finite element trial functions and their derivatives Copyright (C) 2013 Greg von Winckel 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...
gpl-3.0
voxlol/scikit-learn
sklearn/utils/__init__.py
132
14185
""" The :mod:`sklearn.utils` module includes various utilities. """ from collections import Sequence import numpy as np from scipy.sparse import issparse import warnings from .murmurhash import murmurhash3_32 from .validation import (as_float_array, assert_all_finite, ...
bsd-3-clause
tgy/facedetect
script/plot_mblbp.py
1
2423
#!/usr/bin/env python3 '''Visualize randomly chosen mblbp features in a given window''' import random import os import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.animation as animation import matplotlib.image as mpimg from PIL import Image COLORS = ['#1a535c', '#4ecdc4', '#ff6b6...
mit
cmap/cmapPy
cmapPy/math/tests/test_fast_cov.py
1
17355
import unittest import logging import cmapPy.pandasGEXpress.setup_GCToo_logger as setup_logger import cmapPy.math.fast_cov as fast_cov import numpy import tempfile import os logger = logging.getLogger(setup_logger.LOGGER_NAME) class TestFastCov(unittest.TestCase): @staticmethod def build_standard_x_y(): ...
bsd-3-clause
drpngx/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_test.py
30
60826
# 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
ibayer/fastFM-fork
fastFM/validation.py
1
10668
# Static versions of non-core sklearn.utils functions. # Placed here since they are subject to change. """Utilities for input validation""" # Authors: Olivier Grisel # Gael Varoquaux # Andreas Mueller # Lars Buitinck # Alexandre Gramfort # Nicolas Tresegnie # License: BSD ...
bsd-3-clause
Akshay0724/scikit-learn
sklearn/utils/testing.py
29
25405
"""Testing utilities.""" # Copyright (c) 2011, 2012 # Authors: Pietro Berkes, # Andreas Muller # Mathieu Blondel # Olivier Grisel # Arnaud Joly # Denis Engemann # Giorgio Patrini # Thierry Guillemot # License: BSD 3 clause import os import inspect import p...
bsd-3-clause
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4