ICode9

精准搜索请尝试: 精确搜索
  • JS函数--函数提升与变量提升2021-08-30 10:00:48

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=d

  • Inline variable declaration not compiling2021-08-27 16:02:04

    Inline variable declaration not compiling  error CS1525: Invalid expression term 'string' error CS1003: Syntax error, ',' expected   In case the above answer doesn't work for you, as it didn't work for me do the following: O

  • 第一章 绪论2021-08-24 21:33:07

    1.1统计学(statistics,数据的科学) 掌握总体和样本的概念与区别传统的数据库技术无法高效处理这些海量数据,那么就需要统计学结合以革命性的新处理模式,比如分布式文件系统GFS、HDFS;并行处理架构MapReduce和分布式数据存储系统Bigtable等。两个部分:描述统计学和推断统计学描述统计学(d

  • postman高级用法之pre-request2021-08-17 11:34:23

    一、pre-request 1.简单用法 //获取、设置、删除环境变量 pm.environment.get("variable_key"); pm.environment.set("variable_key", "variable_value"); pm.environment.unset("variable_key"); //获取设定删除全局变量 pm.globals.get("variable_key&quo

  • Pytorch使用autograd.function自定义op2021-08-17 01:32:49

    0x01 简介 Pytorch是利用Variable与Function来构建计算图的,Function就像计算图中的边,实现Variable的计算,并输出新的Variable,因此Function需要有forward和backward的功能,前者用于正常传递输入,后者用于计算梯度.(但直接用nn.Module构建就可以只用写forward,backward调用自动求导计

  • c++中的new和delete2021-08-09 02:32:32

    1. 动态内存分配是在程序运行时从堆分配,非静态的,局部变量内存分配是在栈上; 2. 动态内存分配的用处: (1)分配可变大小的内存,编译器一般分配指定大小,当然动态数组编译器也可以; (2)使程序员很弹性的分配(需要内存)和释放(不再需要)内存;   3. 标准的变量如int a, char c[10]等都是自动分配和释

  • 环境变量的定义2021-08-07 16:03:03

    经常在软件安装的时候遇到设置环境变量,但是一直不是很理解环境变量是什么   来自wiki的定义:   An environment variable is a dynamic-named value that can affect the way running processes will behave on a computer. They are part of the environment in which a

  • C++中的命名空间2021-08-06 11:35:24

    在C++中通过命名空间来避免命名冲突 类似java中包的概念来解决函数名冲突问题 namespace MQ { int g_variable; class Person{ }; void test() { } } int main(){ MQ::g_variable = 10; MQ::Person *p = new MQ::Person(); M

  • C/C++: static variables2021-08-03 18:03:32

    static variable can only be initialized once. Compiler persist the variable till the end of the program. Eg: #include <iostream> int* a = NULL; void my_delete() { static int deleted = 0; std::cout << "deleted = " <<

  • Syntax error: Bad for loop variable2021-08-03 12:01:10

    从 ubuntu 6.10 开始,ubuntu 就将先前默认的bash shell 更换成了dash shell;其表现为 /bin/sh 链接倒了/bin/dash而不是传统的/bin/bash。 allen@allen-lql ~/workspace/script $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Aug 12 14:29 /bin/sh -> dash 所以在使用sh执行检测的时候

  • 【PyTorch】内容提要2021-08-02 21:03:34

    基础知识. T e n s o r

  • postman系列-使用变量2021-07-31 18:32:14

    作用:在请求中和脚本中,使用变量可以存储值和重用值。将值存储在变量中,就可以在collections、environments、和requests中引用该值。而且当需要更新该值时,只需要在一个地方更改。 快速入门 要尝试变量,请使用以下步骤: 单击Postman右上角的Environment quick look(眼睛按钮),然后单击G

  • Categorical variable(类别变量)学习笔记2021-07-30 13:31:00

    写在前面 一、为什么要引入类别变量:对现有的数据进行预处理,再训练模型,使得训练出来的模型效果更好 二、什么是类别变量:类别变量又名分类变量,顾名思义,类别变量就是能表示类别的名词,比如说,男,女;汽车制造业,手工业,农业等。 本文基于kaggle教程介绍三个方法 1、丢弃分类变量 impo

  • extern关键词声明 global variable & function2021-07-29 16:00:06

    extern关键词声明 global variable & function In fact, function is a special global variable. 因为函数的访问也是通过全局的address实现的。 Global variable 使用extern关键词的目的是:使全局变量能在别的源文件中使用。 对于这个问题,有的人说不需要extern也能实现,例如: /***

  • electrion vue __dirname is a NodeJS variable2021-07-25 13:32:22

    __dirname is a NodeJS variable, in recent electron versions, node integration is disabled by default. When opening your BrowserWindow, you should add the following to the options: module.exports = { pluginOptions: { electronBuilder: {

  • C++ primer plus程序2.2《carrots.cpp》2021-07-25 11:57:48

    //程序清单2.2 //carrots.cpp  --  food processing program //uses and display a variable #include <iostream> int main() {     using namespace std;          int carrots;                                            //declare an int

  • python局部变量报错:UnboundLocalError: local variable ‘data_iter‘ referenced before assignment 的解决方法2021-07-23 16:32:10

    程序: 报错内容: in get_iterator return data_iter UnboundLocalError: local variable ‘data_iter’ referenced before assignment 大致意思是说我的返回值 data_iter 是一个局部变量,因为 data_iter 第一次定义是在第二个 if 里。 解决方法: 把 data_iter 设置为全局变量:

  • BERT论文阅读(二): CG-BERT:Conditional Text Generation with BERT for Generalized Few-shot Intent Detection2021-07-15 11:33:38

    目录 The proposed method Input Representation The Encoder   The Decoder  fine-tuning discriminate a joint label space consisting of both existing intent which have enough labeled data and novel intents which only have a few examples for each class. ==>

  • pytorch学习笔记-----对抗生成网络GAN2021-07-15 10:58:35

    生成器,判别器 G:生成网络生成的都为假的 D:判别网络判别真实数据与来自生成网络的假数据 判别网络其实就是进行一个图像二分类 生成网络需要fc层输出个数为h*w*c(c=1or3 即为一张图片的形式) 损失函数 第一输入参数预测值,第二个参数标签值 BCEloss:需要将预测值映射到0~1之间,将所

  • Need numeric dependent variable for regression2021-07-13 19:04:02

    Need numeric dependent variable for regression ​ 由于R语言版本不同,svm函数的更新,各参数发生了改变,最新版本的svm函数中各参数要求以及用法可以参见以下网址: https://www.rdocumentation.org/packages/e1071/versions/1.7-7/topics/svm 解决方法: 1、安装低版本的R语言 2

  • robotframework学习笔记六:Set Variable If 关键字的使用2021-07-10 21:34:46

       此处特别注意,必须将条件成立和不成立时的结果都要写上,否则在条件不成立时,原变量将被赋予None值。 使用Set Variable If 特别容易被偷偷的改值,问题就出现在上面这里!

  • FasterRcnn中的tensor方法resize_()和copy_()2021-07-08 15:35:32

    resize_()可以将使用此方法的tensor对象的形状进行改变,和numpy中的reshape函数不同,此方法运行变化后的大小和原来大小不一样,超出部分进行补0 copy_()参数将参数的数值复制到对象中,前提是参数形状要和对象形状一致。   通过Variable变量可以有效地在深度学习中进行加速运算。Varab

  • 自用 | bb选择题 assgn42021-07-03 23:59:26

    1. You can declare two variables with the same name in __________. A. a block B. different methods in a class C. two nested blocks in a method (two nested blocks means one being inside the other) D. a method one as a formal parameter and the other as a lo

  • cmake:unset2021-07-01 12:58:45

    取消变量、缓存变量或环境变量的设置。 取消变量、缓存变量 unset(<variable> [CACHE | PARENT_SCOPE]) 从当前范围中删除一个普通变量,使其成为未定义的。如果存在CACHE,则删除缓存变量,而不是普通变量。注意,当计算${VAR}形式的变量引用时,CMake首先搜索具有该名称的普通变量。

  • L1-SVD实现DOA2021-06-29 22:31:44

    最近事情太多,来不及更新。看了一篇很经典的论文D. Malioutov, M. Cetin and A. S. Willsky, "A sparse signal reconstruction perspective for source localization with sensor arrays," in IEEE Transactions on Signal Processing, vol. 53, no. 8, pp. 3010-3022, Aug. 20

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有