This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division # For Python 2 compatibility | |
import jax.numpy as np | |
import jax | |
from functools import partial | |
from functools import partial | |
@partial(jax.jit, static_argnums=(1,2,3)) | |
def psis_single(x, cutoff_ind, cutoffmin, k_min): | |
# improve numerical accuracy | |
x -= np.max(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"source":"great location and great community, some of the members of the management are super nice and friendly and some are hardly so. the maintenance situation could be improved.", | |
"label":[ | |
1 | |
], | |
"label-metadata":{ | |
"job-name":"labeling-job/reviews-single-label-pilot-2", | |
"confidence-map":{ | |
"1":0.04 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using LinearAlgebra,Distributed, Statistics, GraphRecipes, BenchmarkTools, LinearAlgebra, LightGraphs, Plots, RCall, ProfileView, FunctionWrappers, LoopVectorization, ThreadPools, FunctionWranglers | |
using FunctionWrappers: FunctionWrapper | |
import LightGraphs: | |
AbstractGraph, | |
SimpleGraph, | |
SimpleDiGraph, | |
AbstractEdge, | |
SimpleEdge, | |
has_edge, | |
is_directed, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributed, Statistics, GraphRecipes, BenchmarkTools, LinearAlgebra, LightGraphs, Plots, RCall, ProfileView, FunctionWrappers, LoopVectorization, ThreadPools | |
using FunctionWrappers: FunctionWrapper | |
using Profile | |
n = 100 | |
g_orig = erdos_renyi(n, 0.05; is_directed = true) | |
g_adj = convert(Array{Bool, 2}, collect(adjacency_matrix(g_orig))); | |
struct erg{G <: AbstractArray{Bool}} <: AbstractGraph{Int} |