全部文章
```cpp#include #include #include #include struct Base { virtual void f() { std::cout init(); return ret;}void testVirtual() { //Base b; //Derived d; /... ...
分类:编程语言 时间:2020-02-24 20:39:13 收藏:0 阅读:81
import math import random import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy.stats import multivariate_normal sampleso ...
分类:其他 时间:2020-02-24 20:38:27 收藏:0 阅读:72
给定一个二维矩阵,计算其子矩形范围内元素的总和,该子矩阵的左上角为 (row1, col1) ,右下角为 (row2, col2)。 来自leetcode 本题既是一个熟悉class的题目,也是一道简单的动态规划题,子矩阵面积 = 两块面积 - 重复面积 + 右下角面积 收获: 都是一些值得学习的小 ...
分类:其他 时间:2020-02-24 20:38:11 收藏:0 阅读:77
```cpp#include #include #include #include #include #include #include #include #include #include #include #include //STL 是一个框架, 将数据结构和算法进一步的抽象//容器, 迭代器... ...
分类:编程语言 时间:2020-02-24 20:37:55 收藏:0 阅读:66
1、梯度爆炸 原因:在学习过程中,梯度变得非常大,使得学习的过程偏离了正常的轨迹。 症状:观察输出日志(runtime log)中每次迭代的loss值,你会发现loss随着迭代有明显的增长,最后因为loss值太大以致于不能用浮点数去表示,所以变成了NaN。 可采取的方法:(1)降低学习率,降低至少一 ...
分类:其他 时间:2020-02-24 20:37:36 收藏:0 阅读:101
概述 在使用Spring Boot的时候我们经常使用actuator,健康检查,bus中使用/refresh等。这里记录如何使用注解的方式自定义Endpoint。可用于满足一些服务状态监控,或者优雅停机等。 准备 Spring Boot项目,pom中加入: 编写自定义Endpoint 1.配置 2. ...
分类:编程语言 时间:2020-02-24 20:37:16 收藏:0 阅读:101
源代码: # coding=utf-8 import requests from lxml import etree class ChaxunSpdier: def __init__(self): self.start_url = 'http://111.40.232.237:9000/eoms35 ...
分类:其他 时间:2020-02-24 20:36:57 收藏:0 阅读:93
1.懒汉模式 懒汉模式:在类加载的时候不被初始化,懒汉式是延时加载,他是在需要的时候才创建对象。 public class JdbcUtil { //定义私有的引用 private static JdbcUtil jdbcUtil; /** * 不能让外部直接创建对象 */ private Jdbc ...
分类:编程语言 时间:2020-02-24 20:36:36 收藏:0 阅读:61
常成员函数不能改变数据成员的值,例如定义坐标类Coordinate,成员函数changeX():void Coordinate::changeX(){ x = 10;}虽然changeX()没有参数,但是它隐含一个参数——this指针:void Coordinate::changeX(Coordin... ...
分类:其他 时间:2020-02-24 20:36:15 收藏:0 阅读:63
```cpp #include #include #include //auto ptr //shared_ptr //unique_ptr //weak_ptr class Parent; //采用前置声明 using ParentPtr = std::shared_ptr; typedef st... ...
分类:编程语言 时间:2020-02-24 20:35:58 收藏:0 阅读:65
1369293693036931323994
上一页3239936下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!