![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
xiaolaoshuXD
这个作者很懒,什么都没留下…
展开
-
Java实现深度神经网络:ReLU层
使用Java实现/** * ReLU层 * * @author xiaocheng * */public class ReLU { public ReLU() { } public double[] out(double[] x) { double[] out = new double[x.length]; for (int i = 0; i < x.length; i++) { out[i] = ReLUF(x[i]); } return out;原创 2020-09-18 20:48:18 · 342 阅读 · 0 评论 -
Java实现深度神经网络:PReLU层
使用Java实现/** * PReLU层 * * @author xiaocheng * */public class PReLU { public PReLU() { } public double[] out(double[] x) { double[] out = new double[x.length]; for (int i = 0; i < x.length; i++) { out[i] = PReLUF(x[i]); } return ou原创 2020-09-18 20:42:39 · 196 阅读 · 0 评论 -
Java实现深度神经网络:BatchNorm2d层
使用Java实现/** * 归一化 对一张图的归一化 * * @author SXC 2020年9月11日 下午2:00:15 */public class BatchNorm2d { double weight = 0.5653, bias = 0; public BatchNorm2d(int num_features) { } public double mean(double[] x) { double meanvalue = 0; for (int i = 0;原创 2020-09-11 14:36:28 · 142 阅读 · 0 评论 -
Java实现深度神经网络:Sigmoid层
Java实现深度神经网络:Sigmoid层使用Java实现Sigmoid.java/** * Sigmoid层 * * @author SXC 2020年9月11日 下午12:56:31 */public class Sigmoid { public Sigmoid() { } public double[] out(double[] x) { double[] out = new double[x.length]; for (int i = 0; i < x.le原创 2020-09-11 13:24:21 · 829 阅读 · 0 评论 -
Java实现深度神经网络:Linear层
Java实现深度神经网络:Linear层使用Java实现Linear .java/** * Linear 层 * @author SXC 2020年9月11日 上午10:39:35 */public class Linear {// out_features个神经元 double[][] weight;// 每行为一个神经元的weight double[] bias; int in_features, out_features; public Linear(int in_featur原创 2020-09-11 12:49:20 · 434 阅读 · 0 评论 -
opencv实现人脸检测(Java实现)
opencv实现人脸检测(Java实现)/** * 人脸识别功能(抄袭DEMO) * @author SXC * 2020年7月2日 下午11:23:26 */import org.opencv.core.Core;import org.opencv.core.Mat;import org.opencv.core.MatOfRect;import org.opencv.core.Point;import org.opencv.core.Rect;import org.opencv.c原创 2020-09-04 22:50:02 · 761 阅读 · 0 评论 -
多层神经网络代码实现
多层神经网络单个神经元类/** * 单个神经元 * * @author SXC 2020年8月13日 下午9:48:19 */public class Neurons { ThreeNeurons tN; double input[]; double inputandoutput[]; double weight[];// 包含一个偏置的权重,数量比输入大一个 private double nowoutput; private double ez;// e误差对z中间输出的导数原创 2020-08-19 15:09:51 · 631 阅读 · 0 评论 -
Java通过jxl.jar写入Excel数据
Java通过jxl.jar写入Excel数据,代码如下:import java.io.File;import java.io.IOException;import jxl.Cell;import jxl.Sheet;import jxl.Workbook;import jxl.read.biff.BiffException;public class ReadExcel { public static void main(String[] args) { try { readE原创 2020-07-26 15:38:12 · 431 阅读 · 0 评论 -
Java通过jxl.jar读取Excel数据
java读取Excel数据,代码如下:import java.io.File;import java.io.IOException;import jxl.Cell;import jxl.Sheet;import jxl.Workbook;import jxl.read.biff.BiffException;public class ReadExcel { public static void main(String[] args) { try { readExce原创 2020-07-26 15:24:13 · 295 阅读 · 0 评论