text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
__author__ = 'Christoph Heindl'
__copyright__ = 'Copyright 2017, Profactor GmbH'
__license__ = 'BSD'
import glob
import os
import numpy as np
import matplotlib.pyplot as plt
from sensor_correction.utils import sensor_unproject
from sensor_correction.gp_cpu import GPRegressor
def select_data(temps, poses, all_depths_... | {"hexsha": "3e9d56cc3cf3bc6170f8a5f7910fe7dbff335dae", "size": 3582, "ext": "py", "lang": "Python", "max_stars_repo_path": "sensor_correction/apps/train.py", "max_stars_repo_name": "cheind/rgbd-correction", "max_stars_repo_head_hexsha": "3cc6cae43d7393a58f9212167be90b1af0c67e39", "max_stars_repo_licenses": ["BSD-3-Clau... |
# Copyright 2020 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 agre... | {"hexsha": "d4ce8970dc96b72006680b24606c35f9084936b8", "size": 3416, "ext": "py", "lang": "Python", "max_stars_repo_path": "vis.py", "max_stars_repo_name": "ldery/ATTITUD", "max_stars_repo_head_hexsha": "6d09eb986804814827c45632c22dc616578f9aa0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars_r... |
"""
==================
Animated line plot
==================
"""
# https://github.com/matplotlib/matplotlib/blob/master/examples/animation/simple_anim.py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
fig, ax = plt.subplots()
x = np.arange(0, 2*np.pi, 0.01)
line, = ax.plot... | {"hexsha": "3175396c0cc7fcd63ac6d266414b3d8595ffa719", "size": 730, "ext": "py", "lang": "Python", "max_stars_repo_path": "Matplotlib/demo_00Mofandemo/animation_simpleani.py", "max_stars_repo_name": "Asurada2015/Mofan_demo", "max_stars_repo_head_hexsha": "5697c8de3e5fd6562e77195b198b2d8ff836008e", "max_stars_repo_licen... |
"""Module with function for tranforming data"""
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.dummy impor... | {"hexsha": "85ab7f2f4d0825c1cc6b6915153e1606737e87a5", "size": 1770, "ext": "py", "lang": "Python", "max_stars_repo_path": "py_files/get_data.py", "max_stars_repo_name": "seoho926/art-forgery-test", "max_stars_repo_head_hexsha": "75edaed60477a62ec987b5917ec2e28cc4753f1c", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
[STATEMENT]
lemma prob_algebra_real_prob_measure:
"p \<in> space (prob_algebra (real_borel)) = real_distribution p"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (p \<in> space (prob_algebra real_borel)) = real_distribution p
[PROOF STEP]
proof
[PROOF STATE]
proof (state)
goal (2 subgoals):
1. p \<in> space (pro... | {"llama_tokens": 960, "file": "Quasi_Borel_Spaces_Probability_Space_QuasiBorel", "length": 14} |
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | {"hexsha": "c311a2f90ca2d4e707a44f8f4bface71ddb04f2a", "size": 12811, "ext": "py", "lang": "Python", "max_stars_repo_path": "hyperparameter_tuning/keras_bring_your_own/trainer/environment.py", "max_stars_repo_name": "Great-Learning-AIML-Apr2020-Group10/amazon-sagemaker-examples", "max_stars_repo_head_hexsha": "61563d7a... |
// Copyright (c) 2014-2017 Jae-jun Kang
// See the file LICENSE for details.
#include "x2boost/case.hpp"
#include <boost/bind.hpp>
#include <boost/thread/locks.hpp>
#include "x2boost/flow.hpp"
using namespace x2boost;
void caze::setup(flow_ptr holder)
{
set_flow(holder);
boost::thread_specific_ptr<x2boost... | {"hexsha": "598ed02985564cb523323bdd899dce3113b53eb1", "size": 1778, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/case.cpp", "max_stars_repo_name": "jaykang920/x2boost", "max_stars_repo_head_hexsha": "2a1160b7f840b7ceea6b18e61603ab4e0ce7a94c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma... |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import pandas as pd
import sys
from collections import Iterable
import numpy as np
import pickle
import scipy as sp
from clonesig.data_loader import SimLoader
from clonesig.evaluate import score1B_base, score1C_base, score2A_base, score2C_base, score_sig_1A_base, score_sig_1... | {"hexsha": "d7eb9d601b3944b545201f04bf218428476f4b7f", "size": 11793, "ext": "py", "lang": "Python", "max_stars_repo_path": "signature_code/evaluate_palimpsest.py", "max_stars_repo_name": "judithabk6/Clonesig_analysis", "max_stars_repo_head_hexsha": "b473425833a75a6699b3b5b3026d91d00dbb53ba", "max_stars_repo_licenses":... |
"""Statistics utils."""
import numpy as np
import pandas as pd
from statsmodels.stats import multitest as mt
from .data import scale_graph
def bonferroni_correction(p_values, q_star):
"""
Return indices of pValues that make reject null hypothesis
at given significance level with a Bonferroni correction.
... | {"hexsha": "ad4bd3da35c74d546fcb8432bf4ca348b5a1195d", "size": 3125, "ext": "py", "lang": "Python", "max_stars_repo_path": "cosifer/utils/stats.py", "max_stars_repo_name": "C-nit/cosifer", "max_stars_repo_head_hexsha": "550b3ee1055bf1ceb8883ee8736c8d538ceb6ee4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7,... |
# coding: utf-8
# # Neural Composer project
# -----
#
# In[1]:
import sys
sys.path.append("helpers/")
#Libraries
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
import pickle
import torch
import torch.nn as nn
import torch.nn.functional as F
print "torchversion: ", torch.__version__
... | {"hexsha": "334b08e013098346bd9d365f1c3494534d34ddf8", "size": 7225, "ext": "py", "lang": "Python", "max_stars_repo_path": "project.py", "max_stars_repo_name": "PepperMentos/music-generation", "max_stars_repo_head_hexsha": "9eaa2ce28cafd8742e313332ac716caf645d4482", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars... |
class Deploy:
'''Functionality for deploying a model to a filename'''
def __init__(self, scan_object, model_name, metric, asc=False):
'''Deploy a model to be used later or in a different system.
NOTE: for a metric that is to be minimized, set asc=True or otherwise
you will end up wit... | {"hexsha": "73c71216a56291ac697c6870fdd1ccf3b9a0bb0e", "size": 3497, "ext": "py", "lang": "Python", "max_stars_repo_path": "talos/commands/deploy.py", "max_stars_repo_name": "zazula/talos", "max_stars_repo_head_hexsha": "4a2a2c1c16310a2158692808cb0a6cfe4e4be326", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1... |
-- @@stderr --
dtrace: failed to compile script test/unittest/funcs/err.D_PROTO_LEN.copyoutstrtoofew.d: [D_PROTO_LEN] line 19: copyoutstr( ) prototype mismatch: 1 arg passed, 3 expected
| {"hexsha": "fce3d84630853df51c3fe0956f29373821405f9c", "size": 186, "ext": "r", "lang": "R", "max_stars_repo_path": "test/unittest/funcs/err.D_PROTO_LEN.copyoutstrtoofew.r", "max_stars_repo_name": "alan-maguire/dtrace-utils", "max_stars_repo_head_hexsha": "53b33a89ef7eaeba5ce06d50a4c73fe91c1fa99e", "max_stars_repo_lice... |
import sys
import numpy as np
import matplotlib.pyplot as plt
import utils as u
#####################################################################################################
### USING OPENCV PLOTTING BACKEND ###
# from cv2 import namedWindow, setMouseCallback, destroyAllWindows, EVENT_LBUTTONDOWN
# args_1 ... | {"hexsha": "9fb3b4cc749dce0e22196c6feb6022e5b938f116", "size": 3462, "ext": "py", "lang": "Python", "max_stars_repo_path": "cli.py", "max_stars_repo_name": "pchandrasekaran1595/Color-Replacer", "max_stars_repo_head_hexsha": "1a53bc802deaf59afaa7139c1ec388edfecd8cb5", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
module Test.Inigo.Package.PackageDepsTest
import IdrTest.Test
import IdrTest.Expectation
import Data.List
import Inigo.Async.Promise
import Inigo.Package.PackageDeps
import SemVar.Data
import Test.Inigo.Package.PackageTest
import Toml
exampleDepsToml : String
exampleDepsToml = """
['1.2.3']
deps.a='=5.0.0'
dev.b='=6... | {"hexsha": "2519b338adff86e1e92ed75237eef4fb9e7a5d6a", "size": 3744, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "Test/Inigo/Package/PackageDepsTest.idr", "max_stars_repo_name": "Z-snails/inigo", "max_stars_repo_head_hexsha": "57f5b5c051222d8c630010a0a3cf7d7138910127", "max_stars_repo_licenses": ["MIT"], "max... |
\chapter{Matrices and Linear Maps}
Each linear map on a finite dimensional map corresponds to a matrix and
\[ A =
\begin{pmatrix}
a_{11} & \dots & a_{1n} \\
\vdots & \ddots & \vdots \\
a_{m1} & \dots & a_{mn}
\end{pmatrix}
= (a_{ij})_{\substack{i=1,...,m \\ j=1,...n}}
\]
$m$ is the number of rows and $n$ is th... | {"hexsha": "4905b9e26196144190824f2e5498b8a5352745d1", "size": 4231, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chapter-4-matrices.tex", "max_stars_repo_name": "agupta54/maths-for-ml", "max_stars_repo_head_hexsha": "c5e54f14e4a24a389d31a613c34c7ef40e2bc0d1", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
from gym_reacher.envs.env_bases import BaseBulletEnv
from gym_reacher.envs.scene_bases import SingleRobotEmptyScene
import numpy as np
from gym_reacher.envs.reacher import Reacher1
from gym_reacher.envs.reacher import Reacher2
from gym_reacher.envs.reacher import Reacher3
from gym_reacher.envs.reacher import Reacher4
f... | {"hexsha": "86ec007b74dd33ee07ad03d342727bcbdb66f9f1", "size": 11784, "ext": "py", "lang": "Python", "max_stars_repo_path": "gym_reacher/envs/reacher_env.py", "max_stars_repo_name": "PierreExeter/gym-reacher", "max_stars_repo_head_hexsha": "d58edeb93b4b703101dc0505232c883fd012dbad", "max_stars_repo_licenses": ["MIT"], ... |
import random
import gym
import numpy as np
import tensorflow as tf
from collections import deque
class DQN(object):
"""docstring for DQN"""
def __init__(self, observation_size, action_size, hidden_size, learning_rate):
self.observation_size = observation_size
self.action_size = action_size
self.hidden_size =... | {"hexsha": "f6da3b24e9d2ef6df6fead772668e52f49eec270", "size": 3350, "ext": "py", "lang": "Python", "max_stars_repo_path": "agents/basic_dqn.py", "max_stars_repo_name": "shivangag/gym_agents", "max_stars_repo_head_hexsha": "224a0ea6d9c402cda27cc15679bef1d5fd3dad3d", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
from pgmpy.models import MarkovModel
from pgmpy.factors.discrete import JointProbabilityDistribution, DiscreteFactor
from itertools import combinations
from flyingsquid.helpers import *
from flyingsquid import _triplets
from flyingsquid import _graphs
from flyingsquid import _observables
from flyingsquid import _lm_par... | {"hexsha": "3dedf6839e0c9756808e6572f35e8acd92b97d1f", "size": 43891, "ext": "py", "lang": "Python", "max_stars_repo_path": "flyingsquid/label_model.py", "max_stars_repo_name": "oxu2/flyingsquid", "max_stars_repo_head_hexsha": "07c38f259d962fa2b3581793045af4687f91be93", "max_stars_repo_licenses": ["Apache-2.0"], "max_s... |
#!/usr/bin/python -O
### python
import sys
import os
import re
import time
### numpy
import numpy
### db
import sinedon
import MySQLdb
### appion
from appionlib import apDisplay
from appionlib import apStack
from appionlib import apEulerCalc
from appionlib import appiondata
from appionlib import apSymmetry
class ApEu... | {"hexsha": "cc8671c2c49a796becdcf6d8e4ecf7c7e2ce6d71", "size": 13218, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/python2.7/site-packages/appionlib/apEulerJump.py", "max_stars_repo_name": "leschzinerlab/myami-3.2-freeHand", "max_stars_repo_head_hexsha": "974b8a48245222de0d9cfb0f433533487ecce60d", "max_st... |
"""
checkinputs \\
for checking that the inputs are consistent \\
Arguments: x = random variable, usually input \\
y = random variable, usually output/classification \\
xmax = the maximum number of possible values across the dimensions in x \\
ymax = the maximum number of possible ... | {"hexsha": "99e43a88b7d2d578cbdedf266c0977267a42eaf9", "size": 1169, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/checkinputs.jl", "max_stars_repo_name": "thomasjdelaney/Jentropy.jl", "max_stars_repo_head_hexsha": "7d991182ea3deb1643907edda77b02782da8b933", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
"""
datagenerator script. run this standalone.
read PGN files of recorded blitz games from variously rated
players. spawn N number of threads for reading M amount of data.
total games read from one session is equal to N*M, which has to
be smaller than the number of games in one PGN file.
the fics2019-blitz dataset co... | {"hexsha": "e2938a26340f9a4e24a38260166f8fc2c93f4c75", "size": 15251, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/datagen/datagenerator.py", "max_stars_repo_name": "willeagren/pychess", "max_stars_repo_head_hexsha": "b255dd023a24564bef3cd9b26686c740dce8586b", "max_stars_repo_licenses": ["MIT"], "max_star... |
import theano
import theano.tensor as T
from theano.ifelse import ifelse
from theano.tensor import slinalg
import numpy as np
from neupy.utils import asfloat
from neupy.core.properties import (BoundedProperty, ChoiceProperty,
WithdrawProperty)
from neupy.algorithms import GradientDes... | {"hexsha": "b9284442b8ee7151264dfaa9dc10732b41201c24", "size": 4433, "ext": "py", "lang": "Python", "max_stars_repo_path": "neupy/algorithms/gd/lev_marq.py", "max_stars_repo_name": "vishalbelsare/neupy", "max_stars_repo_head_hexsha": "684313cdaddcad326f2169384fb15ec3aa29d991", "max_stars_repo_licenses": ["MIT"], "max_s... |
import sys
import numpy as np
import random
import pandas as pd
from dec_reprod import de_uniform
from moead import optimize
instance = int(sys.argv[1])
rep = 51
benchmarks = ["hangseng", "dax", "ftse", "sp", "nikkei"]
savedir = "tmp/{}/unif/".format(benchmarks[instance-1])
N, T, gen = 100, 20, 1500
sigma, nr = 0.9,... | {"hexsha": "5b0af719827f639cb142e4dda7cd0d9b32ea9cb7", "size": 746, "ext": "py", "lang": "Python", "max_stars_repo_path": "run_unif.py", "max_stars_repo_name": "Y1fanHE/po_with_moead-levy", "max_stars_repo_head_hexsha": "d0531c9685ea1a09dd074960b51756d8f19a9719", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7... |
#!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 8/23/13
###Purpose: visualize results of time-based epidemic simulations
#### pairs with age_perc_T_time.py
###Import data: pickled datasets
###Command Line: python age_perc_T_time.py
###############... | {"hexsha": "6f52878d2d416dbc8bdb5eba32f82229b7361863", "size": 6025, "ext": "py", "lang": "Python", "max_stars_repo_path": "age_perc_T_viz.py", "max_stars_repo_name": "eclee25/flu-SDI-simulations-age", "max_stars_repo_head_hexsha": "055ef42c8d3c760018836f82251948ad86917a3c", "max_stars_repo_licenses": ["MIT"], "max_sta... |
from models.telegram import Telegram
import plotly
import plotly.offline as py
import plotly.graph_objs as go
import pandas as pd
import numpy as np
df = Telegram.query_all()
df.reset_index(inplace=True)
# df.groupby(['date', 'name'])['mean'].sum().groupby(level='name').mean()
numeric_columns = ['mean', 'median', 's... | {"hexsha": "9be0cd2d4f1c54fc2960b262d5f27aa0ae3fcede", "size": 1288, "ext": "py", "lang": "Python", "max_stars_repo_path": "fomo_social_harvester/visualize.py", "max_stars_repo_name": "dgnsrekt/fomo-social-harvester", "max_stars_repo_head_hexsha": "accae1c91741ded911da53050331c39bf461c2e7", "max_stars_repo_licenses": [... |
module help
use, intrinsic :: iso_fortran_env, only : compiler_version
use config, only : get_compiler_vendor
implicit none (type, external)
private
public :: help_gemini_bin, help_gemini_run, help_magcalc_bin
contains
subroutine help_gemini_bin(git_revision)
character(*), intent(in) :: git_revision
print '(/,A,/... | {"hexsha": "525ac7c5de302452220a9515f41153621be4e368", "size": 2420, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/utils/help.f90", "max_stars_repo_name": "paulinchin/gemini3d", "max_stars_repo_head_hexsha": "787168fcafb51624b5ad1aedbd40ad47466cb43f", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars... |
import math
import torch
import random
import numpy as np
import torch.nn as nn
class ReplayMemory(object):
'''
Memory buffer for Experience Replay
'''
def __init__(self, capacity):
'''
Initialize a buffer containing max_size experiences
'''
self.capacity = capa... | {"hexsha": "4d2fdf58c2ca45761fd1a4ba38e78d97c4a2ab64", "size": 5308, "ext": "py", "lang": "Python", "max_stars_repo_path": "torch_ac/algos/dqn.py", "max_stars_repo_name": "kebaek/minigrid", "max_stars_repo_head_hexsha": "3808c1401ea7846febf88d0a2fb2aa39e4a4913f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 5... |
import numpy as np
class topsis:
""" Define a TOPSIS decision making process
TOPSIS (Technique for Order Preference by Similarity to an Ideal Solution)
chooses an alternative of shortest distance from the
"""
C = None
optimum_choice = None
def __init__(self, a, w, I):
... | {"hexsha": "bffc72a4ac5715e5d01b09be702674336d2c0b49", "size": 4686, "ext": "py", "lang": "Python", "max_stars_repo_path": "Topsis/topsis.py", "max_stars_repo_name": "ehsan-rezaei/Ehsan.Rezaei_MCDM", "max_stars_repo_head_hexsha": "0774e26556b7264921bfbcc45841b720a5211c28", "max_stars_repo_licenses": ["MIT"], "max_stars... |
import spikeextractors as si
#import spikewidgets as sw
import spiketoolkit as st
import mlprocessors as mlpr
import json
from cairio import client as ca
import numpy as np
from copy import deepcopy
def compare_sortings_with_truth(sortings,compute_resource,num_workers=None):
print('>>>>>> compare sortings with tru... | {"hexsha": "f7369619cd01529ee372590cea33f5f73b48f876", "size": 5341, "ext": "py", "lang": "Python", "max_stars_repo_path": "spikeforest_analysis/compare_sortings_with_truth.py", "max_stars_repo_name": "tjd2002/spikeforest2", "max_stars_repo_head_hexsha": "2e393564b858b2995aa2ccccd9bd73065681b5de", "max_stars_repo_licen... |
# -*- coding: utf-8 -*-
# @Author : PistonYang(pistonyang@gmail.com)
import numpy as np
import torch
__all__ = ['mixup_data', 'mixup_criterion']
@torch.no_grad()
def mixup_data(x, y, alpha=0.2):
"""Returns mixed inputs, pairs of targets, and lambda
"""
if alpha > 0:
lam = np.random.beta(alpha, ... | {"hexsha": "a229555f41d742572aa5a8b98d4af181de9b313c", "size": 606, "ext": "py", "lang": "Python", "max_stars_repo_path": "torchtoolbox/tools/mixup.py", "max_stars_repo_name": "daBawse167/torch-toolbox", "max_stars_repo_head_hexsha": "a1c0440127bca00201dfa0d0e0dcbafb65628632", "max_stars_repo_licenses": ["BSD-3-Clause"... |
from unittest import TestCase
from pydmd.dmdbase import DMDBase
import matplotlib.pyplot as plt
import numpy as np
# 15 snapshot with 400 data. The matrix is 400x15 and it contains
# the following data: f1 + f2 where
# f1 = lambda x,t: sech(x+3)*(1.*np.exp(1j*2.3*t))
# f2 = lambda x,t: (sech(x)*np.tanh(x))*(2.*np.exp(... | {"hexsha": "fe547fcf9bd0822dacd12fb0138e516d25a3938c", "size": 1760, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_dmdbase.py", "max_stars_repo_name": "LeidongX/PyDMD", "max_stars_repo_head_hexsha": "12144715eccd2f66fcc3e00d0a77cc19051e3a56", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3,... |
"""
volatilitySmile.py
Created by Luca Camerani at 31/08/2020, University of Milano-Bicocca.
(l.camerani@campus.unimib.it)
All rights reserved.
This file is part of the EcoFin-Library (https://github.com/LucaCamerani/EcoFin-Library),
and is released under the "BSD Open Source License".
"""
import matplotlib.pyplot a... | {"hexsha": "c0f0728390905dcaa35206aa8ac9ef35c6c7be10", "size": 1720, "ext": "py", "lang": "Python", "max_stars_repo_path": "Examples/volatilitySmile.py", "max_stars_repo_name": "LucaCamerani/EcoFin-library", "max_stars_repo_head_hexsha": "ad8d628e0d447d1b5e8d3b16610d382e7df086e1", "max_stars_repo_licenses": ["BSD-4-Cla... |
#!./bin/python
'''
Code By Michael Sherif Naguib
Liscence: MIT open source
Date: 2/23/19
@University of Tulsa
Description: Code to calculate some patterns i was curious about in the golden ratio and the lucas sequence
it is known that the phi^n is approx the nth lucas number... round(phi^n) = lucas(n)
... | {"hexsha": "2fb9a7d9de6ac7e944f5f75a9e394b415282439f", "size": 2967, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "Michael-N/GoldenRatio", "max_stars_repo_head_hexsha": "b210a67000cfe3efa536da1b67f094abf6166259", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma... |
import numpy as np
def move(loc, act):
'''Get next location based on taking an action
in a current location.
Args:
loc (tuple): tuple containing:
(int): Row of current location.
(int): Column of current location.
act (str): Action as symbol.
Returns:
... | {"hexsha": "974244dddf0307444fe46bb24c8ce7d18227d647", "size": 5150, "ext": "py", "lang": "Python", "max_stars_repo_path": "travel_tools.py", "max_stars_repo_name": "ekrell/fujin", "max_stars_repo_head_hexsha": "e798e5f5235a621d0cd9f67d8c1d955da6971a6a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max_st... |
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 29 19:38:29 2018
@author: yume
"""
import numpy as np
import matplotlib.pyplot as plt
import basic_distributions
if __name__ == '__main__':
sampler = basic_distributions.LinearModel()
x = sampler()
sampler.visualize(x)
print("Distribution: ", sampler.ge... | {"hexsha": "77b07ed88e29b567d3ea471d4d5790cf3a343d38", "size": 1033, "ext": "py", "lang": "Python", "max_stars_repo_path": "linearmodel.py", "max_stars_repo_name": "is0280fp/generative_models", "max_stars_repo_head_hexsha": "4b10bb112521eacc5f08350e2a47d4c99cff8890", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
struct Model{A,L}
epistasis::EpistasisMu{A,L}
x::Vector{Float64}
λ::Vector{Float64}
A::Int
L::Int
T::Int
end
#creates a model for epistasis
function Model(epistasis::EpistasisMu{A,L}, T::Int, x = [], λ = []) where {A,L}
if length(x) == 0
x = zeros(fields_length(epistasis))
end
if length(λ) == 0
λ = zeros... | {"hexsha": "090428e19d284e5ad47134f3fb6b5e0516242432", "size": 539, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/model.jl", "max_stars_repo_name": "matteodeleonardis/UAF2.jl", "max_stars_repo_head_hexsha": "83af0afd03a6e9bacdc809c7fcbcdd2760bbb98d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{natbib}
\usepackage[colorinlistoftodos]{todonotes}
\title{\bfseries{COMP90016 -- Assignment 2 }}
\author{Haonan Li}
\date{\today}
... | {"hexsha": "0cb12fa03636a786cb1789c11e726b624eba033c", "size": 11148, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Conputional_Genonics/Assignment/assignment2/report/report.tex", "max_stars_repo_name": "infinityglow/Unimelb-CS-Subjects", "max_stars_repo_head_hexsha": "07bdb49fd4c50035b7f2e80ca218ac2b620098e4", ... |
import diskcache
from lgblkb_tools import Folder, logger
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from box import Box
import itertools as it
import more_itertools as mit
from lgblkb_tools.geometry import SpatialMan
sns.set()
# region pandas options:
# pd.set_option('... | {"hexsha": "dcd92e65d1c275570d195389e9db5cae0dde7866", "size": 729, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_navigation.py", "max_stars_repo_name": "lgblkb/lgblkb_tools2", "max_stars_repo_head_hexsha": "33cff47ea1074d28d79c71ae903a9a48ed24bcba", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
% dtft_test.m
% test mex versions of DTFT by comparing to m-file versions
for1 = @(om, x) jf_mex('dtft,forward', om', x, int32(1));
adj1 = @(om, Xm, N) jf_mex('dtft,adjoint', om', Xm, int32(N), int32(1));
%
% 1d tests
%
if 1, printm '1d dtft for'
N1 = 32;
M = 10;
om = 2*pi*[0:(M-1)]'/M; % test with uniform frequen... | {"author": "JeffFessler", "repo": "mirt", "sha": "b7f36cc46916821e8bc8502301b1554ebc7efe1d", "save_path": "github-repos/MATLAB/JeffFessler-mirt", "path": "github-repos/MATLAB/JeffFessler-mirt/mirt-b7f36cc46916821e8bc8502301b1554ebc7efe1d/nufft/dtft_test.m"} |
import numpy as np
import matplotlib.pyplot as plt
teilnehmer = int(input("Teilnehmer: "))
a = list()
x = np.arange(1, teilnehmer+1)
y = np.zeros(teilnehmer)
a.append(float(input("Geheimnis: ")))
for i in range(teilnehmer-1):
a.append(float(input(f"Koeffizient a{i+1}: ")))
for i in range(teilnehmer):
for j in ... | {"hexsha": "3e1fe4eed920d76da5c9a1c0ff758ccbfdb56afa", "size": 1005, "ext": "py", "lang": "Python", "max_stars_repo_path": "secret-sharing/secret-sharing-1-geheimnis.py", "max_stars_repo_name": "nicoboss/practical-MPC", "max_stars_repo_head_hexsha": "40833d58c0458049f902dd52aa63503ce116bd90", "max_stars_repo_licenses":... |
from PIL import Image
import numpy as np
def check_image(image_names):
if image_names[0] == "" or not '.' in image_names[0]:
quit()
if len(image_names) == 1:
image_names.append("output.jpg")
def get_grayscale(i, j, size):
grayscale = 0
for row in range(i, i + size):
... | {"hexsha": "fd9042fdc1b8bd47e8a67f7a9a69df13f2ebb5de", "size": 1622, "ext": "py", "lang": "Python", "max_stars_repo_path": "filter.py", "max_stars_repo_name": "ohtoe02/Refactoring-Group-26", "max_stars_repo_head_hexsha": "b75985cd07f23ee0f9a551808e9d35b79bcb4e41", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
/*
* Copyright 2019-2020 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include <mc_control/mc_global_controller.h>
#include <mc_rbdyn/rpy_utils.h>
#include <mc_udp/client/Client.h>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#include <signal.h>
static bool running = true;
void handler(int)
{
... | {"hexsha": "b59948522e732e45fc8264d20b9c35f15fb8d0a7", "size": 12903, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/client/MCUDPControl.cpp", "max_stars_repo_name": "gergondet/mc_udp", "max_stars_repo_head_hexsha": "1c8c715951fe6443c239897e0784278271356664", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Candidate tree rankers.
"""
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import zip
from builtins import str
from bui... | {"hexsha": "183f1f9dd53cd09a721ba686da10af93dc297da2", "size": 30783, "ext": "py", "lang": "Python", "max_stars_repo_path": "tgen/rank.py", "max_stars_repo_name": "AnneBeyer/tgen", "max_stars_repo_head_hexsha": "f7d7d13a85b8fd35919097c7d11345ddb9775d26", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 222... |
"""
Equations of motion for R3B-2D system (Restricted 3-Body Problem in 2 Dimensions).
Derived via Hamiltons's equations.
"""
from math import sqrt
import numpy as np
import numpy.random as npr
from numba import njit
from orbsim.r3b_2d import k
@njit
def get_pdot_x(x, y, p_y):
"""generalized momentum p_x (nond... | {"hexsha": "972e573ab49319689731366b7e5651cc68b28aaa", "size": 2854, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/orbsim/r3b_2d/analyticals.py", "max_stars_repo_name": "GandalfSaxe/letomes", "max_stars_repo_head_hexsha": "5f73a4066fcf69260cb538c105acf898b22e756d", "max_stars_repo_licenses": ["MIT"], "max... |
#include <boost/test/unit_test.hpp>
#include "algorithms/data_structures/sll/find_k_to_last_elem_in_sll.hpp"
BOOST_AUTO_TEST_SUITE(FindKToLastElementInSLL)
BOOST_AUTO_TEST_CASE(test_fkesll_short_sll)
{
NodeSLL<int>* sll = new NodeSLL<int>(0);
AppendToSLL(&sll, 1);
BOOST_CHECK(nullptr == Algo::DS::SLL::Fin... | {"hexsha": "0225900dbd29d70e727a85953eaa569d03a315fa", "size": 1195, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/algorithms/data_structures/sll/test_find_k_to_last_elem_in_sll.cpp", "max_stars_repo_name": "iamantony/CppNotes", "max_stars_repo_head_hexsha": "2707db6560ad80b0e5e286a04b2d46e5c0280b3f", "max_... |
#ifndef TM_KIT_BASIC_GENERIC_IO_STREAM_IMPORTER_EXPORTER_HPP_
#define TM_KIT_BASIC_GENERIC_IO_STREAM_IMPORTER_EXPORTER_HPP_
#include <type_traits>
#include <iostream>
#include <chrono>
#include <cstddef>
#include <vector>
#include <cstring>
#include <string_view>
#include <boost/endian/conversion.hpp>
#include <tm_kit... | {"hexsha": "5ab67f8851ba293378f890eafd022d77c2b05636", "size": 38033, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "tm_kit/basic/GenericIOStreamImporterExporter.hpp", "max_stars_repo_name": "cd606/tm_basic", "max_stars_repo_head_hexsha": "ea2d13b561dd640161823a5e377f35fcb7fe5d48", "max_stars_repo_licenses": ["Ap... |
# Authors: CommPy contributors
# License: BSD 3-Clause
"""
============================================
Wifi 802.11 simulation (:mod:`commpy.wifi80211`)
============================================
.. autosummary::
:toctree: generated/
Wifi80211 -- Class to simulate the transmissions and receiving parameter... | {"hexsha": "58ee43569929c3f20573c2ba4cfec264437a3d01", "size": 8157, "ext": "py", "lang": "Python", "max_stars_repo_path": "commpy/wifi80211.py", "max_stars_repo_name": "goodcq/CommPy", "max_stars_repo_head_hexsha": "af3a9acba32d2f9c6b723705f709fee2cb9352e2", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_coun... |
#AoC2015 day6 part1
# 0 - off, 1 - on
import numpy
size = 1000
matrix = numpy.zeros((size, size), "bool")
with open("input") as f:
for line in f:
a = line.strip().split(" ")
st = a[-3].split(",")
ast, bst = int(st[0]), int(st[1])
fi = a[-1].split(",")
af, bf = int(fi[0]), int(fi[1])
if a[-4] == "on"... | {"hexsha": "e64472092aca29166fe7749f87e252cc1e425115", "size": 542, "ext": "py", "lang": "Python", "max_stars_repo_path": "solutions/61numpy.py", "max_stars_repo_name": "karmazynow-a/aoc2015", "max_stars_repo_head_hexsha": "42bbfd8bf3336fe81e9cd865aec9c281c059ee6b", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
# -*- coding: utf-8 -*-
# --------------------------------------
# @Time : 2020/11/01
# @Author : Oscar Chen
# @Email : 530824679@qq.com
# @File : train.py
# Description : train code
# --------------------------------------
import os
import math
import time
import numpy as np
import tensorflow as tf
from tqdm... | {"hexsha": "5018d0cf68ecdc261119af57750532243bacb4cf", "size": 6621, "ext": "py", "lang": "Python", "max_stars_repo_path": "train.py", "max_stars_repo_name": "530824679/YOLOv3", "max_stars_repo_head_hexsha": "2ea5ccd136f00260b42eb459f5ab0884cb162483", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_st... |
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# 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 appl... | {"hexsha": "ca066be394987daf3baa44a712514c209e1cf53e", "size": 13338, "ext": "py", "lang": "Python", "max_stars_repo_path": "ppgan/faceutils/face_detection/detection/blazeface/net_blazeface.py", "max_stars_repo_name": "lyl120117/PaddleGAN", "max_stars_repo_head_hexsha": "946ccecd6988526cd70d6e11004738fd374739a0", "max_... |
"""
Extract as-run river time series.
To test on mac:
run extract_rivers -gtx cas6_v3_lo8b -0 2019.07.04 -1 2019.07.04
To run on perigee:
run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.01.10
run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.12.31
Performance: takes 23 sec per year on perigee
M... | {"hexsha": "cc85a942cbf7b59c5567afa83b5cd9d0434c51dd", "size": 3673, "ext": "py", "lang": "Python", "max_stars_repo_path": "extract/river/extract_rivers.py", "max_stars_repo_name": "parkermac/LO", "max_stars_repo_head_hexsha": "09e0197de7f2166bfa835ec62018b7a8fbfa7379", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
import spacy, re, os, sys, bottleneck, json
import numpy as np
def parse_json_results(res_json):
'''
probably one of the most inefficient methods ever written in python history
I apologize.
'''
jay = json.loads(res_json)
res_parsed = []
for key in jay:
for k, v in key.items():
... | {"hexsha": "3a4fa5ed32df96d6770329e9b853efdac3f29888", "size": 5917, "ext": "py", "lang": "Python", "max_stars_repo_path": "w2v_setup/test.py", "max_stars_repo_name": "derdav3/tf-sparql", "max_stars_repo_head_hexsha": "6d3fe6e3b6824a4cd5468a243829b71f5b0952f2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 5, ... |
function X=rectsample(N)
X=rand(N,2);
X=X+repmat([-0.5,-0.5],N,1); | {"author": "canlab", "repo": "CanlabCore", "sha": "af242e120f0480c4feaeea90471c015a14f1f60e", "save_path": "github-repos/MATLAB/canlab-CanlabCore", "path": "github-repos/MATLAB/canlab-CanlabCore/CanlabCore-af242e120f0480c4feaeea90471c015a14f1f60e/CanlabCore/External/spider/basic/@toyreg/rectsample.m"} |
'''
@Description: code
@Author: MiCi
@Date: 2020-03-15 21:31:58
@LastEditTime: 2020-03-15 21:58:24
@LastEditors: MiCi
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
class Practice8(object):
def __init__(self):
return
def exercise(self):
path = './data/Apple_stock... | {"hexsha": "81b24b68b2177104407dafe86fa072ce51528e7d", "size": 1269, "ext": "py", "lang": "Python", "max_stars_repo_path": "practice/practice-8.py", "max_stars_repo_name": "MiCigo/pandas_tutorial", "max_stars_repo_head_hexsha": "5526a075acf8e08c1e89dc0385a731ac9145299b", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
function [mbar] = dynpcm22mbar(dynpcm2)
% Convert pressure from dynes per square centimeter to millibar
% Chad Greene 2012
mbar = dynpcm2*0.00100000; | {"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/35258-unit-converters/unit_converters/dynpcm... |
"""
count_total_bits(n::Int64)
Calculates the total number of bits from 1 to `n` for a given integer `n` by combing a
while-loop for building the binary subsets with a range for-loop for counting the bits.
# Arguments
- `n::Int64`: Integer value which has to be evaluated.
# Examples
```julia-repl
julia> impor... | {"hexsha": "c3b112ac9255b5862c43ebd81fad1e3377ce7bd6", "size": 929, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/BitManipulation/CountTotalBits.jl", "max_stars_repo_name": "Anselmoo/ClassicAlgorithmsCollections", "max_stars_repo_head_hexsha": "9f802c4f317492e19b0b8bb6d9020d8450e00772", "max_stars_repo_lice... |
# supporting lib for kmeans clustering
# Nitin Borwankar
# Open Data Science Training
import numpy as np
from scipy.cluster.vq import kmeans,vq
from scipy.spatial.distance import cdist
import matplotlib.pyplot as plt
def load_data(fName = '../datasets/UN4col.csv'):
fp = open(fName)
XX = np.loadtxt(fp)
fp.close... | {"hexsha": "8011654b1091b9aca874148767741a586d7a3145", "size": 1967, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks/kmeans.py", "max_stars_repo_name": "arshadshk/LearnDataScience", "max_stars_repo_head_hexsha": "a01fbaf4e4ac3a93a8be5efe84d58817e80b87c5", "max_stars_repo_licenses": ["BSD-2-Clause"], "m... |
"""QFAST Optimizer wrapper for scipy's L-BFGS-B optimizer."""
import scipy.optimize as opt
from qfast.decomposition.optimizer import Optimizer
class LBFGSOptimizer( Optimizer ):
def minimize_coarse ( self, objective_fn, xin ):
res = opt.minimize( objective_fn, xin, jac = True, method = 'L-BFGS-B' )
... | {"hexsha": "d7eed8e51b73c5c40b127c4adc185ea5e62ab4f5", "size": 536, "ext": "py", "lang": "Python", "max_stars_repo_path": "qfast/decomposition/optimizers/lbfgs.py", "max_stars_repo_name": "BQSKit/qfast", "max_stars_repo_head_hexsha": "06df0c7439ae096af2d1fa3e97b44512618f5e4a", "max_stars_repo_licenses": ["BSD-3-Clause-... |
# coding: utf-8
# Copyright (c) Alliance for Sustainable Energy, LLC
# Distributed under the terms of the Apache License, Version 2.0
from __future__ import division, unicode_literals
__author__ = "Travis W. Kemper, Scott Sides"
__copyright__ = "Copyright 2015, Alliance for Sustainable Energy, LLC"
__version__ = "0.3... | {"hexsha": "6894b0d07d226d6ae8ad8bb030e91f357b1d6af1", "size": 95077, "ext": "py", "lang": "Python", "max_stars_repo_path": "streamm/structures/structure.py", "max_stars_repo_name": "NREL/streamm-tools", "max_stars_repo_head_hexsha": "663ceff5e9a1145b74ee8c1857988dc94d6535a2", "max_stars_repo_licenses": ["Apache-2.0"],... |
[STATEMENT]
theorem Completeness: "I \<noteq> {} \<Longrightarrow> finite I \<Longrightarrow>
Kripke {s :: ('s :: state). \<exists> i \<in> I. (i \<rightarrow>\<^sub>i* s)} (I :: ('s :: state)set) \<turnstile> EF s
\<Longrightarrow> \<exists> (A :: ('s :: state) attree). \<turnstile> A \<and> attack A = (I,s)"
[PROO... | {"llama_tokens": 1552, "file": "Attack_Trees_AT", "length": 8} |
%% Copyright (C) 2014-2022 Colin B. Macdonald
%%
%% This file is part of OctSymPy.
%%
%% OctSymPy 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 l... | {"author": "cbm755", "repo": "octsympy", "sha": "c1ecd1e08f027d5101d0f4250dfc496aa98c8bcd", "save_path": "github-repos/MATLAB/cbm755-octsympy", "path": "github-repos/MATLAB/cbm755-octsympy/octsympy-c1ecd1e08f027d5101d0f4250dfc496aa98c8bcd/inst/@sym/atan.m"} |
import numpy as np
DTYPES_L = [
np.dtype('int64'),
np.dtype('bool'),
np.dtype('int32'),
np.dtype('float64'),
np.dtype('float32'),
]
DTYPES_S = {
np.dtype('int64'),
np.dtype('bool'),
np.dtype('int32'),
np.dtype('float64'),
np.dtype('float32'),
}
F_TYPES_L = [
np.dtype('... | {"hexsha": "4cf89592ea166e1b413e989145851c536059119f", "size": 1277, "ext": "py", "lang": "Python", "max_stars_repo_path": "mmu/commons/types.py", "max_stars_repo_name": "RUrlus/ModelMetricUncertainty", "max_stars_repo_head_hexsha": "f401a25dd196d6e4edf4901fcfee4b56ebd7c10b", "max_stars_repo_licenses": ["Apache-2.0"], ... |
import numpy as np
from garage.core import Serializable
from garage.envs.box2d.box2d_env import Box2DEnv
from garage.envs.box2d.parser import find_body
from garage.misc import autoargs
from garage.misc.overrides import overrides
# http://mlg.eng.cam.ac.uk/pilco/
class DoublePendulumEnv(Box2DEnv, Serializable):
@... | {"hexsha": "a7793a67fe3ebc08ccac4f2e0fa1a7ae556a24e5", "size": 2078, "ext": "py", "lang": "Python", "max_stars_repo_path": "garage/envs/box2d/double_pendulum_env.py", "max_stars_repo_name": "shadiakiki1986/garage", "max_stars_repo_head_hexsha": "095bb5d25b32df1d44b47e99a78a9b01796941d9", "max_stars_repo_licenses": ["MI... |
# coding: utf8
import numpy as np
from examples.continuous_bag_of_words_embeddings.vocabulary import Vocabulary
class CBOWVectorizer(object):
""" The Vectorizer which coordinates the Vocabularies and puts them to use"""
def __init__(self, cbow_vocab):
"""
:param cbow_vocab: maps words to in... | {"hexsha": "450348b3ef0f17a99dc5699bb1f333ae5ae52792", "size": 1730, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/continuous_bag_of_words_embeddings/cbow_vectorizer.py", "max_stars_repo_name": "Jochen-M/pytorch_nlp", "max_stars_repo_head_hexsha": "75ffbe60d1a9c383981396f346c6dcbabbb9e5d7", "max_stars... |
#!/usr/bin/python3
# coding=utf-8
# -------------------------------------------------------------------------------
# This file is part of Phobos, a Blender Add-On to edit robot models.
# Copyright (C) 2020 University of Bremen & DFKI GmbH Robotics Innovation Center
#
# You should have received a copy of the 3-Clause ... | {"hexsha": "969d7b5aed4d392fa25f9dc74c4ad0008ca2c2d3", "size": 68086, "ext": "py", "lang": "Python", "max_stars_repo_path": "phobos/io/entities/sdf.py", "max_stars_repo_name": "hawkina/phobos", "max_stars_repo_head_hexsha": "b8a9ab432c160e5df229579988d302cf302137bc", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st... |
%
% NOS
%
% Aleph Objects Firewall
%
% Copyright (C) 2014, 2015, 2016 Aleph Objects, Inc.
%
% This document is licensed under the Creative Commons Attribution 4.0
% International Public License (CC BY-SA 4.0) by Aleph Objects, Inc.
%
There are a lot of operating systems to consider to use as a firewall...
\section{Req... | {"hexsha": "7ab97974adb160617130c0c955b281fc76965ee2", "size": 11881, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "source/OS.tex", "max_stars_repo_name": "alephobjects/aof", "max_stars_repo_head_hexsha": "8d8461d0761fcf33ca3964bf11fb8e5251f18b3e", "max_stars_repo_licenses": ["CC-BY-4.0"], "max_stars_count": nul... |
\section{Operation of the System}
% What does your demonstration do and how does it work? What does it look like?
Big Brother has two main components: a high-throughput server and a JavaScript client. The client listens to events that occur in a web browser, and the server ingests them in real-time.
\vspace{-8pt}
\su... | {"hexsha": "2838994230c8bdda05ba1484445e7851620bd3c8", "size": 14979, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "paper/operation.tex", "max_stars_repo_name": "hscells/bigbro", "max_stars_repo_head_hexsha": "0c1975fb29138200e6ebed41585905987403eb9b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "m... |
# Visualizing and Understanding Atari Agents | Sam Greydanus | 2017 | MIT License
from __future__ import print_function
import warnings ; warnings.filterwarnings('ignore') # mute warnings, live dangerously ;)
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import numpy as np
from sci... | {"hexsha": "70b28e78e9d5b9c0c90c2bc1f7335f2eb941ac82", "size": 3722, "ext": "py", "lang": "Python", "max_stars_repo_path": "saliency.py", "max_stars_repo_name": "HuTobias/visualize_atari", "max_stars_repo_head_hexsha": "81c9248543431ec3925b982a9f464128e7135677", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 10... |
"""
Utitlity functions that will be used by the sequence data
generators
IGNORE_FOR_SPHINX_DOCS:
List of functions:
getChromPositions - returns two column dataframe of chromosome
positions spanning the entire chromosome at
a) regular intervals or b) random l... | {"hexsha": "7afcbd70bc2d66080c081b55931c1f2947754691", "size": 17065, "ext": "py", "lang": "Python", "max_stars_repo_path": "mseqgen/sequtils.py", "max_stars_repo_name": "juanelenter/mseqgen", "max_stars_repo_head_hexsha": "7e59af9e3a86f61a2664314755b012568cf67f28", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
import argparse
from input_representation import mesh
from renderer.cameras import Camera
from renderer.rasterizer import Rasterizer
from renderer.lights import Lights
from renderer.shaders.basic_shader import Shader
from pytorch3d.renderer import MeshRenderer
from PIL import Image
import numpy as np
import os
import m... | {"hexsha": "981fdfcdcea9a42e8d7328c6fee6897566aa44dd", "size": 2715, "ext": "py", "lang": "Python", "max_stars_repo_path": "apps/RenderMeshes/random_batch_views.py", "max_stars_repo_name": "sanjeevmk/Woodhouse", "max_stars_repo_head_hexsha": "9a234c3e279a26ce9aa416ea9df739edc87c30db", "max_stars_repo_licenses": ["MIT"]... |
"""A plot of the deltas for erosion between scenarios."""
from matplotlib import rcParams
rcParams.update(
{
"font.family": "sans-serif",
"font.sans-serif": ["Liberation Sans"],
}
)
from pyiem.plot import figure_axes
from pyiem.plot.use_agg import plt
from pyiem.util import logger
import numpy ... | {"hexsha": "16898676507350a723b07fc21e380321a2243df2", "size": 1550, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/climatechange/figure3.py", "max_stars_repo_name": "wils0674/dep", "max_stars_repo_head_hexsha": "f5dd90516268cf134f9da16c8031d0a0454b0caf", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
#! /usr/bin/env python3
import numpy as np
import WrightTools as wt
from WrightTools import datasets
def test_perovskite():
p = datasets.wt5.v1p0p0_perovskite_TA # axes w1=wm, w2, d2
# A race condition exists where multiple tests access the same file in short order
# this loop will open the file when it... | {"hexsha": "e5a9ed29aad7f5ff71f86275d82ac7916d91fbe1", "size": 1558, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/artists/test_quick2D.py", "max_stars_repo_name": "untzag/WrightTools", "max_stars_repo_head_hexsha": "05480d2f91ceeca422d9e5ac381fce1840207cb0", "max_stars_repo_licenses": ["MIT"], "max_star... |
import os
from math import ceil
import cv2
import imutils
import numpy as np
from keras import backend as K
from keras.preprocessing.image import img_to_array
# --------------------------------------------------------------------------------------------------------------------------
# Label Functions
# -------------... | {"hexsha": "63000f7fd95b32ed6204a27ba8da6565aadddf8f", "size": 12408, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/modules/nn_predict_helper.py", "max_stars_repo_name": "jindongyang94/anti-spoofing", "max_stars_repo_head_hexsha": "5a18226e2665fd75f6dcfd2f9991f572ed81da6c", "max_stars_repo_licenses": ["FTL... |
#!/usr/bin/env python
# Copyright (c) 2016 Satya Mallick <spmallick@learnopencv.com>
# All rights reserved. No warranty, explicit or implicit, provided.
import os
import cv2
import numpy as np
import math
import sys
# Read points from text files in directory
def readPoints(path) :
# Create an array of array of ... | {"hexsha": "9381956a090ed14480ad7e65f3c6c193c0758a14", "size": 9036, "ext": "py", "lang": "Python", "max_stars_repo_path": "BookSrc/learnOpenCV/FaceAverage/faceAverage.py", "max_stars_repo_name": "xiaohaijin/OpenCV", "max_stars_repo_head_hexsha": "0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1", "max_stars_repo_licenses": ["... |
[STATEMENT]
lemma pdevs_apply_Pdevs_eq_0:
"pdevs_apply (Pdevs xs) i = 0 \<longleftrightarrow> ((\<forall>x. (i, x) \<in> set_slist xs \<longrightarrow> x = 0))"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (pdevs_apply (Pdevs xs) i = (0::'a)) = (\<forall>x. (i, x) \<in> set_slist xs \<longrightarrow> x = (0::'a)... | {"llama_tokens": 176, "file": "Affine_Arithmetic_Affine_Code", "length": 1} |
import numpy as np
from numpy import array
from keras.preprocessing.sequence import pad_sequences
from keras.utils import to_categorical
from pickle import dump
# %%
# Function to initialize a generator for training and optimizing the weights
def data_generator(
descriptions, photos, wtix, max_length, num_photo... | {"hexsha": "dde8b2e1e9b94364359cbea279c5e0d2d0d2db63", "size": 2540, "ext": "py", "lang": "Python", "max_stars_repo_path": "training_modules/training_functions.py", "max_stars_repo_name": "ArunBhagat204/image_captioning", "max_stars_repo_head_hexsha": "aa91a876e3cece0234289e37d8c64a892763ed81", "max_stars_repo_licenses... |
# Packages for fetching ESPN credentials
from authorize import get_credentials
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import InvalidArgumentException
# Packages for building League
from team import Team
from utils.building_utils import *
fro... | {"hexsha": "f21164feacee913a3b14adb456f8be84f4127d8f", "size": 18079, "ext": "py", "lang": "Python", "max_stars_repo_path": "league.py", "max_stars_repo_name": "chriss9931/espn-api-v3", "max_stars_repo_head_hexsha": "280f929c2e4e93b295027d681e99840bfe8484f0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 8, "m... |
# coding=utf-8
# Author: Aris Tritas
# License: BSD 3-clause
import numpy as np
from sklearn.preprocessing import maxabs_scale
from ..utils.math import noise, sparsify
def contextual_batch(reward_matrix, n_samples):
"""
Generate a stream of incoming users, their selected items
and the corresponding rewa... | {"hexsha": "2a0cf6a3b3fe8e04e5c06a090d430e0afbf123b9", "size": 11783, "ext": "py", "lang": "Python", "max_stars_repo_path": "bitl/datasets/synthetic.py", "max_stars_repo_name": "tritas/bitl", "max_stars_repo_head_hexsha": "f394e633e38f983fed10c3e672af7be2883cbdbb", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_star... |
# Copyright 2021 AI Singapore
# 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, s... | {"hexsha": "863cd69e88bd022792e67d62a6908a5ea6d3f8fe", "size": 4248, "ext": "py", "lang": "Python", "max_stars_repo_path": "peekingduck/pipeline/nodes/output/media_writer.py", "max_stars_repo_name": "chngzyk/PeekingDuck", "max_stars_repo_head_hexsha": "299dbbda9104c40822ff1076e98b2d45f9974302", "max_stars_repo_licenses... |
import logging
import math
import numpy as np
from PIL import Image
from torchvision import datasets
from torchvision import transforms
from torch.utils.data import Dataset
from .randaugment import RandAugmentMC
logger = logging.getLogger(__name__)
cifar10_mean = (0.4914, 0.4822, 0.4465)
cifar10_std = (0.2471, 0.24... | {"hexsha": "c88c6ad2311fbac99aa9e0706788f11f6ba2036e", "size": 11097, "ext": "py", "lang": "Python", "max_stars_repo_path": "tempmatch/dataset/dataset.py", "max_stars_repo_name": "levinwil/TemperatureMatch", "max_stars_repo_head_hexsha": "ade18959ad4c865e87718ba0bb8e5b2c223221b4", "max_stars_repo_licenses": ["MIT"], "m... |
import math
def get_line():
line = input()
while(line[0] == '/'):
line = input()
return line.strip()
solutions = []
def dfs(depth, max_depth, present_node, destination, path, parcels, delivered, edges_traveled):
global Graph
if depth > max_depth:
return
if present_node == de... | {"hexsha": "943fcb17933da76e2a15ed0525511ee702909a5d", "size": 4057, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/solver/solver.py", "max_stars_repo_name": "NiveditJain/CS323-Project", "max_stars_repo_head_hexsha": "872b6f724e849d6c4a489f1c5f070f6f02905f64", "max_stars_repo_licenses": ["Apache-2.0"], "ma... |
#This is bot used to train the protoss bot for the blink stalker all-in
import sc2
from sc2 import run_game, maps, Race, Difficulty, position
from sc2.player import Bot, Computer
from sc2.constants import *
from sc2.ids.unit_typeid import UnitTypeId
from sc2.ids.ability_id import AbilityId
from sc2.unit import Unit
... | {"hexsha": "388262e674e2bed433f13a18283fcd0c9bc1d7d7", "size": 11395, "ext": "py", "lang": "Python", "max_stars_repo_path": "SC2ai.py", "max_stars_repo_name": "juuusto/SC2_ai_project", "max_stars_repo_head_hexsha": "3d695200949519f08d15b010319e3146c74a9898", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "ma... |
from sentinelhub import SHConfig
import os
import datetime
import numpy as np
import matplotlib.pyplot as plt
from get_coords import get_coords
from sentinelhub import MimeType, CRS, BBox, SentinelHubRequest, SentinelHubDownloadClient, \
DataCollection, bbox_to_dimensions, DownloadRequest
from sentinelhub import S... | {"hexsha": "ce6471ffdfd15ab66395aa652ce16b9bcb9a5fd6", "size": 587, "ext": "py", "lang": "Python", "max_stars_repo_path": "demos/other_years/sentinel_login.py", "max_stars_repo_name": "rudolfwilliam/satellite_image_forecasting", "max_stars_repo_head_hexsha": "164ee7e533e1a8d730a0ee9c0062fd9b32e0bcdc", "max_stars_repo_l... |
import numpy as np
from scipy import stats as sps
from statsmodels.sandbox.stats import multicomp as mc
from metaquantome.classes.SampleGroups import SampleGroups
from metaquantome.util.utils import P_COLNAME, P_CORR_COLNAME
from metaquantome.util.stat_io import read_expanded_table, write_stat
def stat(infile, sinfo... | {"hexsha": "447c57c42971cc733f21029ced000dec1861dff3", "size": 6183, "ext": "py", "lang": "Python", "max_stars_repo_path": "metaquantome/modules/stat.py", "max_stars_repo_name": "jj-umn/metaquantome", "max_stars_repo_head_hexsha": "46461dea0914b9c153985e02c594eeb781bf3a27", "max_stars_repo_licenses": ["Apache-2.0"], "m... |
-makelib ies_lib/xil_defaultlib -sv \
"C:/Xilinx/Vivado/2017.4/data/ip/xpm/xpm_cdc/hdl/xpm_cdc.sv" \
"C:/Xilinx/Vivado/2017.4/data/ip/xpm/xpm_memory/hdl/xpm_memory.sv" \
-endlib
-makelib ies_lib/xpm \
"C:/Xilinx/Vivado/2017.4/data/ip/xpm/xpm_VCOMP.vhd" \
-endlib
-makelib ies_lib/xbip_utils_v3_0_8 \
"../../../ip... | {"hexsha": "8b3ffcd55ce9f5389ea6932c11cbb1777e7f0d7d", "size": 1171, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "Zybo_project_5.ip_user_files/sim_scripts/c_addsub_1/ies/run.f", "max_stars_repo_name": "rzedka/X-band-receiver", "max_stars_repo_head_hexsha": "fd02448072f229702d6f831d99a775e05337d10b", "max_star... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 12 10:02:58 2020
@author: Xavier Jimenez
"""
#------------------------------------------------------------------#
# # # # # Imports # # # # #
#------------------------------------------------------------------#
import numpy as np
import os
import ... | {"hexsha": "c2e195ab4b278f23e01854b0146790e6742d3324", "size": 26510, "ext": "py", "lang": "Python", "max_stars_repo_path": "photoz.py", "max_stars_repo_name": "martinkilbinger/shapepipe_photoz", "max_stars_repo_head_hexsha": "da4547774f6d599fb0106273eb8ab9819b7fd9eb", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
# Copyright (c) 2014-2016 Josh Blum
# SPDX-License-Identifier: BSL-1.0
from . PothosModule import *
from . Buffer import pointer_to_ndarray
from . Buffer import dtype_to_numpy
from . Label import Label
from . Packet import Packet
import numpy
class OutputPort(object):
def __init__(self, port):
self._port ... | {"hexsha": "b298837249abb48764fefce656d381807ec806e0", "size": 539, "ext": "py", "lang": "Python", "max_stars_repo_path": "Pothos/OutputPort.py", "max_stars_repo_name": "pothosware/PothosPython", "max_stars_repo_head_hexsha": "c6d7ed4ef7578a5534ec6a4ba3159a9683970bd3", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars... |
\chapter{Introduction}
\label{chap1}
This document describes SPF2 (Social Proximity Framework 2), the new major release of the software written for the master thesis available at http://hdl.handle.net/10589/106727. Before you could understand this document you should really read the first one. This document will be mo... | {"hexsha": "e7ba1605d44ab22048214003cae61a89a517d313", "size": 11912, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chap1.tex", "max_stars_repo_name": "Ks89/SPF2_Documentation", "max_stars_repo_head_hexsha": "776876dfae954d633a3cb5623c8ebd65b2b175b0", "max_stars_repo_licenses": ["CC0-1.0"], "max_stars_count": nu... |
#!/usr/bin/env python3
import matplotlib.pyplot as plt
import jax.numpy as np
from jax import grad, vmap
fig, ax = plt.subplots(figsize=(10, 7))
x = np.linspace(-4, 4, 1000)
my_func = np.tanh
ax.plot(x, my_func(x))
for _ in range(4):
my_func = grad(my_func)
ax.plot(x, vmap(my_func)(x))
plt.show()
| {"hexsha": "867c7073fd5fe5c0ed550b3e6eb41c4b0997f7b1", "size": 314, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/_archive/01_jax.py", "max_stars_repo_name": "arpastrana/force_density", "max_stars_repo_head_hexsha": "0ceab89a8b125d9b6dbd410ba28c55df17135a89", "max_stars_repo_licenses": ["MIT"], "max_st... |
@testset "evaluation error handling" begin
using Weave: unwrap_load_err
function get_err_str(str::AbstractString)
try
include_string(Main, str)
catch _err
err = unwrap_load_err(_err)
return sprint(showerror, err)
end
end
err_stmt1 = "using NonExisting"
err_stmt2 = "x = "
err_stmt... | {"hexsha": "f3820a8c0bd4a00fba9a9a43d40a90842ce56924", "size": 1142, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/run/test_error.jl", "max_stars_repo_name": "odow/Weave.jl", "max_stars_repo_head_hexsha": "b5ba227e757520f389a6d6e0f2cacb731eab8b12", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 446... |
from torch.optim import Adam
from torch import tensor, arange, stack, isnan, tanh, from_numpy
from torch.nn import Module, Linear
from torch.nn.functional import softplus, elu
from torch.distributions.normal import Normal
from algris import normalize, gather
from itertools import count
from numpy import array
import ar... | {"hexsha": "1325c20f6c4853221489a46c8cb0608b93f8fb64", "size": 3422, "ext": "py", "lang": "Python", "max_stars_repo_path": "agents/gym-policygradientcontinuous.py", "max_stars_repo_name": "Tumiz/DrivingSchool", "max_stars_repo_head_hexsha": "bf1140eee7501b734cbf0f5a636f3ffd64cd027a", "max_stars_repo_licenses": ["MIT"],... |
# Copyright (c) 2012 - 2014 the GPy Austhors (see AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from .. import kern
from ..core.sparse_gp_mpi import SparseGP_MPI
from ..likelihoods import Gaussian
from ..core.parameterization.variational import NormalPosterior, NormalPrior... | {"hexsha": "7cbd69eb8c663631fb2001399813a151d24543be", "size": 10052, "ext": "py", "lang": "Python", "max_stars_repo_path": "GPy/models/bayesian_gplvm.py", "max_stars_repo_name": "strongh/GPy", "max_stars_repo_head_hexsha": "775ce9e64c1e8f472083b8f2430134047d97b2fa", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st... |
// Copyright (C) 2015, Pawel Tomulik <ptomulik@meil.pw.edu.pl>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost::org/LICENSE_1_0.txt)
#define BOOST_TEST_MODULE test_txpl_vm_object_insert
#include <txpl/test_config.hpp>
#include <... | {"hexsha": "b760f8f52321e0c41f9441e2c18152a4d4ca5753", "size": 3881, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/txpl/vm/object_insert_test.cpp", "max_stars_repo_name": "ptomulik/txpl", "max_stars_repo_head_hexsha": "109b5847abe0d46c598ada46f411f98ebe8dc4c8", "max_stars_repo_licenses": ["BSL-1.0"], "max_s... |
REBOL []
name: 'Console
source: %console/mod-console.c
includes: [
%prep/extensions/console ; for %tmp-mod-console.h
]
| {"hexsha": "e7e214159d0e4c8f98890f1a47d577deab9c982e", "size": 126, "ext": "r", "lang": "R", "max_stars_repo_path": "extensions/console/make-spec.r", "max_stars_repo_name": "BlackATTR/ren-c", "max_stars_repo_head_hexsha": "533a998a30e6a74a528718df58d5ece997a43138", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_... |
import matplotlib.pyplot as plt
import matplotlib as mpl
import time
from datetime import datetime
import pytz
import numpy as np
import threading
import requests as req
import json
# ################################### #
# @title Get Fields
url_field = "url_field" # @param {type:"string"}
# api_name_field = "report... | {"hexsha": "bae3837969a33715da0893ba163303f65fd66bc9", "size": 12320, "ext": "py", "lang": "Python", "max_stars_repo_path": "api_stress_test.py", "max_stars_repo_name": "nrasadi/API-Load-Testing-Tool", "max_stars_repo_head_hexsha": "61e3b50ebd8cf45f198e4f45010f88de3b4c313b", "max_stars_repo_licenses": ["MIT"], "max_sta... |
export FxRates
#TODO. Dividir la descarga y la generaración y grabación del dataframe
function ECB_FxRates(ruta::String,from::Date)
file = HTTP.get("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist.zip").body
r = ZipFile.Reader(IOBuffer(file))
FxHist = CSV.File(r.files[1], dateformat="yyyy-mm-dd... | {"hexsha": "e017c366b7d38512db63e04a764eab2a55abfcc7", "size": 503, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ECB/FxRates.jl", "max_stars_repo_name": "lsaenzt/CentralBanks.jl", "max_stars_repo_head_hexsha": "2c48f579bcb84ef2ce0394bcd149634e3a6f43c6", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
"""Multi-temporal post-processing of multi-year built-up data,
validation of the post-processed products and writing of the
final product.
"""
from concurrent.futures import ThreadPoolExecutor
import json
import os
import shutil
import sys
from datetime import datetime
from math import floor
from tempfile import Tempo... | {"hexsha": "d4eb84c391f64452a20f0543ace564b7a0d1494e", "size": 12419, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/multitemp.py", "max_stars_repo_name": "yannforget/maupp", "max_stars_repo_head_hexsha": "ace2f389d2f9c7887b279e427096c92b365a8ce5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
[1] "You must carry: socks"
[2] "You must carry: sunglasses"
[3] "You must carry: note-case"
[4] "You must carry: waterproof_overclothes"
[5] "You must carry: waterproof_trousers"
[6] "You must carry: suntan_cream"
[7] "You must carry: banana"
[8] "You must carry: glucose"
[9] "You must carry: sandwich"
[10] "... | {"hexsha": "d57d8dbdd929287e6ee2568aa6bd7541ee0fdebc", "size": 401, "ext": "r", "lang": "R", "max_stars_repo_path": "Task/Knapsack-problem-0-1/R/knapsack-problem-0-1-2.r", "max_stars_repo_name": "LaudateCorpus1/RosettaCodeData", "max_stars_repo_head_hexsha": "9ad63ea473a958506c041077f1d810c0c7c8c18d", "max_stars_repo_l... |
"""
.. _multi-taper-psd:
===============================
Multi-taper spectral estimation
===============================
The distribution of power in a signal, as a function of frequency, known as the
power spectrum (or PSD, for power spectral density) can be estimated using
variants of the discrete Fourier transfor... | {"hexsha": "1d6b85556904e23be368445d1a45aa9c9e365db6", "size": 12956, "ext": "py", "lang": "Python", "max_stars_repo_path": "doc/examples/multi_taper_spectral_estimation.py", "max_stars_repo_name": "slnovak/nitime", "max_stars_repo_head_hexsha": "8182d032caf5ad9ca2f46fc428c87cb8d5dde133", "max_stars_repo_licenses": ["B... |
# 2. Getting started
## Introducing the GeLaTo library
From now on, we shall use the Python library [spl](https://github.com/pyccel/spl).
Let us consider the following weak formulation
$$\int_{\Omega} N_i N_j + \nabla N_i \cdot \nabla N_j ~d\Omega$$
In the case where $\Omega$ is the unit cube, we should expect th... | {"hexsha": "194b40ef51fa8f876e0e647c67f72a407009b236", "size": 40458, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "lessons/Chapter8/02_getting_started.ipynb", "max_stars_repo_name": "ratnania/IGA-Python", "max_stars_repo_head_hexsha": "a9d7aa9bd14d4b3f1b12cdfbc2f9bf3c0a68fff4", "max_stars_repo_li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.