Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
7
84
path
stringlengths
5
184
copies
stringlengths
1
3
size
stringlengths
4
6
content
stringlengths
978
477k
license
stringclasses
15 values
YuncyYe/ml
mlf/pocketv1.py
1
3503
# #pocket Algorithm # import numpy as np import matplotlib.pyplot as plt import scipy.stats as stats import random ############################################## def sepLine(w, x): return -((w[0]+w[1]*x)/w[2]) #end def drawSepLine(w, minX, maxX): sepx = range(minX, maxX) sepy = [] for e in sep...
apache-2.0
3like3beer/openrevman
openrevman/control_computer/solver.py
1
8426
#!/usr/bin/python # -*- coding: utf-8 -*- import collections import pulp from numpy import dot from pandas import DataFrame, read_table from scipy.sparse import csgraph class Controls: def __init__(self, accepted_demand: DataFrame, product_bid_prices: DataFrame, expected_revenue: float = None): self.acc...
gpl-3.0
fosfataza/protwis
mutational_landscape/views.py
1
34851
from django.shortcuts import get_object_or_404, render from django.http import HttpResponse from django.core.cache import cache from django.db.models import Count, Min, Sum, Avg, Q from django.core.cache import cache from django.views.decorators.cache import cache_page from protein.models import Protein, ProteinConfor...
apache-2.0
tdgoodrich/mase
models/icse14-v5-min.py
13
51518
from __future__ import division import sys,collections,random sys.dont_write_bytecode = True def shuffle(lst): random.shuffle(lst) return lst class Thing(): id = -1 def __init__(i,**fields) : i.override(fields) i._id = Thing.id = Thing.id + 1 i.finalize() def finalize(i): pass def override(i,...
unlicense
brahmcapoor/naming-changes-complexity
analysis/subject_analysis.py
1
8370
from random import shuffle import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import csv import argparse import os import shutil """ The script required for the data analysis. Requires several python libraries to function but otherwise isn't too complicated. """ def generate_all_graphs(): ...
mit
wdurhamh/statsmodels
statsmodels/sandbox/examples/thirdparty/findow_0.py
33
2147
# -*- coding: utf-8 -*- """A quick look at volatility of stock returns for 2009 Just an exercise to find my way around the pandas methods. Shows the daily rate of return, the square of it (volatility) and a 5 day moving average of the volatility. No guarantee for correctness. Assumes no missing values. colors of lines...
bsd-3-clause
synthicity/pandana
pandana/loaders/pandash5.py
5
2024
import pandas as pd def remove_nodes(network, rm_nodes): """ Create DataFrames of nodes and edges that do not include specified nodes. Parameters ---------- network : pandana.Network rm_nodes : array_like A list, array, Index, or Series of node IDs that should *not* be saved a...
agpl-3.0
inkenbrandt/loggerloader
loggerloader/llgui.py
1
107310
"import matplotlib\n\nmatplotlib.use(\"TkAgg\")\nfrom matplotlib.backends.backend_tkagg import Navig(...TRUNCATED)
mit
sbg2133/miscellaneous_projects
carina/lic_thesis_highSL.py
1
6145
"from getIQU import IQU\nfrom subprocess import call\nimport sys,os\nimport numpy as np\nimport glob(...TRUNCATED)
gpl-3.0
466152112/scikit-learn
sklearn/tests/test_learning_curve.py
225
10791
"# Author: Alexander Fabisch <afabisch@informatik.uni-bremen.de>\n#\n# License: BSD 3 clause\n\nimpo(...TRUNCATED)
bsd-3-clause
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
24