softmax杂谈 在多分类问题中,我们可以使用 softmax 函数,对输出的值归一化为概率值。下面举个例子: import sys sys.path.append("E:/zlab/") from plotnet import plot_net, DynamicShow num_node_lis ...
分类:
其他好文 时间:
2020-03-27 00:38:00
阅读次数:
76
查: filter 支持很多的过滤条件,我们来看下: contains 包含,相当于sql的like条件 1 Entry.objects.get(headline__contains='Lennon') SQL equivalent: 1 SELECT ... WHERE headline LIKE ...
分类:
数据库 时间:
2020-03-26 17:54:57
阅读次数:
114
关于选课程序,最近着实有点忙,没机会复习os、pickle两部分模块,所以数据储存和字典读取成为了一个问题,大致原理知道,但是具体操作可能还是得返回去再好好看看,所以目前就提前开始学习新的知识了,虽然今天感觉str的相关方法忘的是干干净净的,但是我有pycharm。 今天主要内容是关于异常,其实有点 ...
分类:
编程语言 时间:
2020-03-25 01:26:18
阅读次数:
85
【简说Python WEB】Flask应用的单元测试 tests/test_basics.py 这里调用 包,单元测试标准库。测试两个功能: 测试确保应用实例是否存在。 测试config配置文件是否正常。 主应用 启动单元测试的命令 为了报错,特定修改 文件如下: 可以看到上述的 代表的tag标识。 ...
分类:
编程语言 时间:
2020-03-24 18:42:06
阅读次数:
76
1、warning:the `gets' function is dangerous and should not be used 2、stdin.c:21:2: error: too many arguments to function ‘fputs’ 原因: 问题出在程序中使用了 gets是非常 ...
分类:
系统相关 时间:
2020-03-22 18:03:20
阅读次数:
165
#pragmaonce#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>#include<time.h>#defineROW9#defineCOL9#defineEasy_count80#defineROWSROW+2#defineCOLSCOL+2voidInitBoard(cha
分类:
微信 时间:
2020-03-22 12:27:21
阅读次数:
168
1、使用BeautifulSoup错误 The code that caused this warning is on line 8 of the file *.py. To get rid of this warning, pass the additional argument 'feature ...
分类:
编程语言 时间:
2020-03-21 21:56:31
阅读次数:
105
在实际代码中,为提高代码的可复用性(后期不用动),可维护性(后期不用改源代码),通过一个抽象类来定义,借助虚函数来定义不同的继承对象。 #define _CRT_SECURE_NO_WARNINGS #include <iostream> using namespace std; //抽象类 cla ...
分类:
其他好文 时间:
2020-03-21 16:22:03
阅读次数:
60
Issue: PrimeTime (R) Version Q-2019.12-SP1 for linux64 - Jan 14, 2020 Copyright (c) 1988 - 2020 Synopsys, Inc. This software and the associated docume ...
分类:
系统相关 时间:
2020-03-19 15:16:18
阅读次数:
139
使用Git bash遇到的一些问题解决方法 1.warning: LF will be replaced by CRLF in package.json.(原因是存在符号转义问题) The file will have its original line endings in your workin ...
分类:
其他好文 时间:
2020-03-19 14:01:01
阅读次数:
163