加载中
builder & Generics

package com.eloancn.back.submitted.service.helper; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * builder for dy query param * * @author zhengdalon...

01/11 00:18
0
Disruptor 多线程消费

NIFATenderFinalCheckHelper.sendFinalCheck /** @author zhengdalong @version V1.0 @date 2018/11/19 7:36 PM */ @Component public class NIFATenderFinalCheckHelper { private int hand...

2018/11/23 11:27
9
keras

import numpy as np from keras.datasets import mnist from keras.utils import np_utils from keras.models import Sequential from keras.layers import Dense, Activation from keras.op...

2018/03/27 00:07
25
图片处理

# 批量下载验证码 import requests import os from os.path import isfile, join from os import listdir import random import time from PIL import Image import shutil import collectio...

2018/03/21 20:49
8
图片处理

# 批量下载验证码 import requests import os from os.path import isfile, join from os import listdir import random import time from PIL import Image import shutil def down_image...

2018/03/21 16:06
10
从图片得到keras的训练数据

# 如何得到train_x和Train_y import os from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array from PIL import Image import numpy as np ''' ''' def lo...

2018/03/20 17:08
279
TensorFlow 线性回归

import numpy as np import matplotlib.pyplot as plt import tensorflow as tf ''' 确定2种变量之间的关系 ''' ''' 获取线性回归训练参数 ''' def getTrainForLineNormal(size=100, W_PA...

2018/03/11 21:15
11
手写识别

import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist from keras.utils import np_utils from keras.models import Sequential from keras.layers import...

2018/03/08 14:27
15
kreas 非线性回归

import keras import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential from keras.optimizers import SGD from keras.layers import Dense,Activation # ...

2018/03/07 17:56
125
Keras 线性回归

import keras import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense #维度是100 返回值为指定维度的array x_data=np.r...

2018/03/07 16:38
115
线程池概念

A、当提交新任务时,若线程池大小小于corePoolSize,将创建一个新的线程来执行任务,即使此时线程池中存在空闲线程; B、当提交新任务时,若线程池达到corePoolSize大小,新提交的任务将被放...

2018/01/18 14:10
22
Fork Join

package com.eloancn.back.schedule.core.windtalkers; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.Future; import java.util.concurrent.RecursiveTask; /*...

2017/12/29 15:59
5
RxJava 入门

package com.famous.stick.observer.ebus.rx; import io.reactivex.*; import io.reactivex.disposables.Disposable; import io.reactivex.functions.Consumer; import io.reactivex.functi...

2017/11/07 22:55
13
Guava EventBus 原理

创建一个Map key可以重复的: //参数就是一个普通的Listener private Multimap<Class<?>, Subscriber> findAllSubscribers(Object listener) { //创建一个key 可以重复的Map key : class 信...

2017/11/02 19:40
12
java性能测试比较模拟代码

package com.eloancn.back.schedule.core.hero; import java.util.Map; import java.util.concurrent.CountDownLatch; public class Hero { public static void main(String[] args) ...

2017/11/01 18:10
5
Spring 整合 Disruptor 第一个版本

package com.eloancn.back.schedule.core.boom; import com.eloancn.back.schedule.core.config.event.EventBusConfig; import com.eloancn.back.schedule.core.model.ScheduleRecord; impo...

2017/11/01 16:56
38
Guava Async EventBus

实际例子: package com.eloancn.back.schedule.core.config.event; import com.google.common.eventbus.AsyncEventBus; import com.google.common.eventbus.EventBus; import org.apache....

2017/09/30 09:43
18
spring-boot rabbitmq 例子

package com.eloancn.back.schedule.core.config.mq; import com.rabbitmq.client.Channel; import org.springframework.amqp.core.AcknowledgeMode; import org.springframework.amqp.core...

2017/08/23 20:20
109
优雅的Guava 用法

guava 对于null的判断

2017/07/07 15:41
15
泛型的用法

public <T> T get(String name,Class<T> clazz)

2017/05/28 22:53
15

没有更多内容

加载失败,请刷新页面

返回顶部
顶部