Skip to content

Instantly share code, notes, and snippets.

View jageshmaharjan's full-sized avatar

jagesh maharjan (马家杰) jageshmaharjan

  • Beijing, PR China (北京,中国)
View GitHub Profile
@jageshmaharjan
jageshmaharjan / asyncpg_pool
Last active November 3, 2022 04:50
Asyncpg_pool
import asyncio
import asyncpg
import functools
import time
from typing import Callable, Any
def async_timed():
def wrapper(func: Callable) -> Callable:
//AKMall Json parser extension
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.*;
import java.util.ArrayList;
public class ClassicTechJsonReader {
@jageshmaharjan
jageshmaharjan / gist:e7a7acac68a66ac4795092f34376354a
Created April 14, 2017 08:44
The PR is shown below. Basically, i was trying to feed my input to LSTM cell, normalize and trying to feed the Convolution layer. And My stacktrace is shown below. I don't know where did i get it wrong.
MultiLayerConfiguration configuration = new NeuralNetConfiguration.Builder()
.updater(Updater.NESTEROVS).adamMeanDecay(0.9).adamVarDecay(0.999)
.regularization(true).l2(1e-5).optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)
.weightInit(WeightInit.XAVIER)
.convolutionMode(ConvolutionMode.Truncate)
.gradientNormalization(GradientNormalization.ClipElementWiseAbsoluteValue).gradientNormalizationThreshold(1.0)
.learningRate(2e-2)
.list()
.layer(0, new GravesBidirectionalLSTM.Builder()
.name("LSTMCell_1")