1.前言 hystrix 是一个微服务系统的断路器组件,上文介绍了 spring cloud 通过 netfix hystrix 提供对 hystrix 的支持。同时 spring cloud 也提供了 openfeign 的支持, 而 openfeign 本身就已经内置了 hystrix 支持。所 ...
分类:
编程语言 时间:
2020-02-12 20:37:15
阅读次数:
68
代码如下: #实现网络的保存和提取 import torch from torch.autograd import Variable import matplotlib.pyplot as plt #设置随机种子实现结果复现,在神经网络中,参数默认是进行随机初始化的。 # 不同的初始化参数往往会导致 ...
分类:
其他好文 时间:
2020-02-12 19:02:02
阅读次数:
125
代码: #集中不同的优化方式 import torch import torch.utils.data as Data import torch.nn.functional as F from torch.autograd import Variable import matplotlib.pypl ...
分类:
其他好文 时间:
2020-02-12 18:17:57
阅读次数:
73
InnoDB存储引擎物理存储结构 共享表空间 独立表空间 查看是否开启独立表空间 表空间迁移 虽然 t2.ibd 还在,但是 mysql 无法识别 处理方式: 在 mysql 中重建一个相同表结构的 tmp 表 CREATE TABLE ( int(11) DEFAULT NULL ) ENGINE ...
分类:
数据库 时间:
2020-02-12 16:08:00
阅读次数:
73
一、线性回归 1、模型 2、损失函数 3、优化函数-梯度下降 #!/usr/bin/env python # coding: utf-8 import torch import time # init variable a, b as 1000 dimension vector n = 1000 a ...
分类:
其他好文 时间:
2020-02-12 10:53:33
阅读次数:
110
在安装环境变量时,可能会遇上 The CATALINA_HOME environment variable is not defined correctlyThis environment variable is needed to run this program 这时候要在环境变量里配置好 CA ...
分类:
其他好文 时间:
2020-02-12 00:39:00
阅读次数:
87
TensorFlow 中可以通过三种方式读取数据: 一、通过feed_dict传递数据; input1 = tf.placeholder(tf.float32) input2 = tf.placeholder(tf.float32) output = tf.multiply(input1, inpu ...
分类:
其他好文 时间:
2020-02-10 22:16:36
阅读次数:
68
A vector-valued random variable $x\in \mathbb{R}^n$ is said to have a multivariate gaussian ( or normal) distribution with mean $\mu\in \mathbb{R}^n$ ...
分类:
其他好文 时间:
2020-02-09 18:14:46
阅读次数:
59
内生变量用于计量经济学,有时用于线性回归。它们与因变量相似(但不完全相同)。内生变量的值由系统中的其他变量决定(这些“其他”变量称为外生变量)。根据密歇根大学迪尔伯恩分校的丹尼尔利特尔(Daniel Little),内生变量的定义如下: 如果变量xj的值是由一个或多个自变量X(不包括其本身)决定或影 ...
分类:
其他好文 时间:
2020-02-08 11:49:10
阅读次数:
92
本篇博客主要介绍了Java基本语法中变量(variable)d的使用,变量是指内存中的一个存储区域,用于在内存中保存数据,在该区域的数据可以在同一类型范围内不断变化...... ...
分类:
编程语言 时间:
2020-02-06 23:26:37
阅读次数:
71