This file contains hidden or 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
import asyncio | |
import asyncpg | |
import functools | |
import time | |
from typing import Callable, Any | |
def async_timed(): | |
def wrapper(func: Callable) -> Callable: |
This file contains hidden or 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
//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 { |
This file contains hidden or 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
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") |