ICode9

精准搜索请尝试: 精确搜索
  • Same $h*t Different Day2021-02-19 21:58:40

    旧VM,新eclipse 缘起环境清单描述 征途round1:尝试运行新版Eclipseround2:旧版VMwareTools编译出错round2:空的hgfs文件夹 缘起 环境清单 OS:win7 VM Workstation 10.0.7 build-2844087 Guest OS in VM: RHEL 7.0 RHEL7.4 描述 我需要在上述环境中安装Eclipse CDT以进行c++程

  • TF2 可视化Loss函数,并且导出模型图2021-01-18 15:35:05

    pip安装依赖pydot和graphviz并且安装软件sudo apt install graphviz,有个坑,windows安装软件之后安装的依赖是pydot-ng 注意:模型的第一层需要把形状传进去 import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import datetime import tensorflow as tf import numpy as np from t

  • C++ 各种数字类型的正则表达式2021-01-17 21:58:45

    C++ 11 开始支持正则表达式了,我用的编译器是 TDM-GCC 4.9.2 64-bit,要在菜单命令:“工具-->编译选项->编译器”中设置配置,编译时加入以下命令文本框里添加 “-std=c++11”,如下图所示: 刚接触正则表达式,初步学了点皮毛记录一下。直接上代码: #include <iostream> #include <string>

  • 终于解决文件重定向的问题2021-01-14 11:02:32

    """ 用python批量获取某路径文件夹及子文件夹下的指定类型文件excel,并按指定路径进行存储 """ import os import os import win32com.client as win32 import shutil filelist_same = [] path_same_head = os.getcwd() path_same_rear = 'bak' path_same = path_s

  • D. Same GCDs【CF 1295】2020-12-21 10:36:04

    传送门   思路: 我们知道b = [a, a + m], 我们需要满足Gcd(a, m) = Gcd(b, m), 假设g = Gcd(a, m),那么Gcd(a, m) = Gcd(a + k * g, m)(a + k * g ∈ b),两边同除以g, Gcd(a / g, m / g) = Gcd(a / g + k, m / g) = g / g = 1  < ====>  Gcd(b / g, m / g) = 1, 说明我们需要在b / g

  • [LeetCode] 967. Numbers With Same Consecutive Differences 连续差相同的数字2020-12-13 07:32:06

    Return all non-negative integers of length n such that the absolute difference between every two consecutive digits is k. Note that every number in the answer must not have leading zeros except for the number 0 itself. For example, 01 has one

  • javascript 给所有相同属性元素添加同一事件(javascript add the same event to all the same properties)2020-12-05 19:32:20

      经常遇到要给 html 中所有相同属性的元素添加同一个点击事件, 这里, 我需要给所有 type 属性为 "radio" 的 input 元素添加上相同的点击事件, 具体实现的 javascript 代码如下:   // document.querySelectorAll("input[type='radio']")是获取网页上所有type属性为radio的inpu

  • 深度学习-Tensorflow2.2-图像处理{10}-UNET图像语义分割模型-242020-12-03 13:02:16

    UNET图像语义分割模型简介 代码 import tensorflow as tf import matplotlib.pyplot as plt %matplotlib inline import numpy as np import glob import os # 显存自适应分配 gpus = tf.config.experimental.list_physical_devices(device_type='GPU') f

  • 【深度学习原理第7篇】深入解析GoogLeNet v1-v4 + keras实现2020-11-27 20:00:11

    目录 前言一、GoogLeNet背景介绍二、Inception网络结构2.1 Inception v12.2 Inception v22.3 Inception v32.4 Inception v4,Inception ResNet2.4.1 Inception v42.4.2 Inception-ResNet 前言 这是入门CV的第三篇,尽量做到通俗易懂,该篇是目前写的内容最多的文章,体会了什

  • LeetCode 1217 - Minimum Cost to Move Chips to The Same Position (Easy)2020-11-06 03:31:55

    We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to the same position. In one step, we can change the position of the ith chip from position[i] to: position[i] + 2 or position[i] - 2 with cost =

  • 30 Day Challenge Day 12 | Leetcode 276. Paint Fence2020-09-24 06:32:40

    题解 动态规划。 Easy class Solution { public: int numWays(int n, int k) { if(n == 0) return 0; if(n == 1) return k; int num = 0; // dp1[i]: the number of ways till the i-th post which always diffs with prevous one

  • POJ 1703 Find them, Catch them (种类并查集)2020-08-10 13:01:02

    题目传送:POJ 1703 Describe: The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Gang Snake. However, the police first needs to identify which gang a criminal belongs to.

  • 14.深度学习-卷积2020-06-06 21:56:16

     提交作业 1.简述人工智能、机器学习和深度学习三者的联系与区别。 机器学习是一种实现人工智能的方法,深度学习是一种实现机器学习的技术。用圆图来展示就是,最外的圆是人工智能,里面一个是机器学习,最里面的圆是深度学习。 如下图:   2. 全连接神经网络与卷积神经网络的联系与

  • POJ 17032020-05-05 18:57:50

    Find them, Catch them Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 62172   Accepted: 18837 Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang

  • 7-44 基于词频的文件相似度 (30分)--map2020-04-28 19:56:59

    代码来源 1 #include<iostream> 2 #include <map> 3 #include <iomanip> 4 #include <string> 5 #include <cstring> 6 using namespace std; 7 map<string, bool>m[101];//如果第i个文件存在单词word,则m[i][word] = true; 8 int same[101][10

  • Codeforces Round #630 (Div. 2) E. Height All the Same(数学+二项式)2020-04-18 22:56:36

    题目:传送门 思路:参考于某大佬(非常清晰+友好)。点此跳转 1. 由于“操作2”,我们可以把原矩阵看作一个01矩阵 (所有数取模2,每个ai,j向上+2 直到最大值和最小值的差<=1) 2. “操作1”的本质是对任意两个点进行翻转(奇偶性变换;考虑如何对不相邻的两个点进行翻转,设这两个点为u、v,那么我们

  • 基于小波变换的图像边缘检测(matlab祖传代码注释)2020-04-06 17:38:55

    基于小波变换的图像边缘提取应用展示 上图为针对png格式无背景原图的边缘检测,对比各种边缘检测算子,小波变化的优势体现并不明显。 上图为针对含背景图片的边缘检测,小波变化的优势这里体现的比较明显。 matlab祖传代码注释 相信看到这篇文章的小伙伴一定已经搜索了“小波变

  • P4313 文理分科(最小割)2020-03-23 10:08:34

    P4313 文理分科 在说这道题之前,让我们先思考一下最小割的性质.最小割就是使得s到t不同割掉的最小边的容量,割过之后,所有的点要么与s联通,要么与t联通. 这样的性质,即要么与s有关系,要么与t有关系的性质(非黑即白)就是典型的最小割的题目. 而这道题就显然,一个人要么选文,要么选

  • 04卷积神经网络2020-03-16 16:54:24

    一. 卷积神经网络定义与比较 1.     全连接神经网络的缺点 参数太多,在cifar-10的数据集中,只有32*32*3,就会有这么多权重,如果说更大的图片,比如200*200*3就需要120000多个,这完全是浪费 没有利用像素之间位置信息,对于图像识别任务来说,每个像素与周围的像素都是联系比较紧密的。

  • 1207 LeetCode 独一无二的出现次数2020-03-16 12:44:23

    题目描述: LeetCode第1207题 独一无二的出现次数 类型简单 思路: 首先使用哈希表记录每个数出现次数 然后利用set判断是否有相等的次数 代码如下: class Solution { public: bool uniqueOccurrences(vector<int>& arr) { map<int,int>cnt; for(int i=0;i

  • [6 kyu] Are they the "same"?2020-03-10 13:06:54

    Given two arrays a and b write a function comp(a, b) (compSame(a, b) in Clojure) that checks whether the two arrays have the “same” elements, with the same multiplicities. “Same” means, here, that the elements in b are the elements in a squared, r

  • A+B for Input-Output Practice (I)2020-03-09 21:08:51

    Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same

  • LeetCode不定时刷题——Same Tree2020-03-08 18:01:49

    Same Tree Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Example 1: Input: 1 1 / \

  • 100. Same Tree2020-03-06 14:59:25

    Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Example 1: Input: 1 1 / \ / \

  • Codeforces1295D. Same GCDs (欧拉函数)2020-02-02 19:53:12

    https://codeforces.com/contest/1295/problem/D 设gcd(a,m)= n,那么找gcd(a +x ,m)= n个数,其实就等于找gcd((a+x)/n,m/n) = 1的个数,等价于求m/n的欧拉函数 1 #include<bits/stdc++.h> 2 typedef long long ll; 3 using namespace std; 4 ll euler_phi(ll n) { 5 ll m = ll(sqrt(n +

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

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

ICode9版权所有