const int maxn = 105; struct Matrix { int m[maxn][maxn]; }ans,res; /**矩阵乘法**/ Matrix mul(Matrix a,Matrix b,int n){ Matrix tmp; for(int i=1;i<=n;i++){ ...
分类:
其他好文 时间:
2018-07-31 17:17:19
阅读次数:
150
一、实例 1)构造极度偏差的数据 import numpy as np from sklearn import datasets digits = datasets.load_digits() X = digits.data y = digits.target.copy() # 构造极度偏斜的数据 ...
分类:
其他好文 时间:
2018-07-31 11:49:05
阅读次数:
460
df = pd.DataFrame(np.arange(12).reshape(3, 4)) df Out[10]: 0 1 2 3 0 0 1 2 3 1 4 5 6 7 2 8 9 10 11 df.as_matrix() Out[11]: array([[ 0, 1, 2, 3], [ 4, ... ...
分类:
其他好文 时间:
2018-07-31 10:59:19
阅读次数:
2589
链接:codeforces.com/contest/8 A 原因:RE,fantasy 的字符串的长度可能大于原字符串。 B 题意:上下左右走,可能要避让障碍,问是否存在一个地图使得给定的路径为当前最短路径。 题型:构造,模拟 原因:map不熟,要判两个地方,一是不重复抵达,二是当前点除去前导点旁边 ...
分类:
其他好文 时间:
2018-07-31 00:35:33
阅读次数:
192
题目描述: We have a two dimensional matrix A where each value is 0 or 1. A move consists of choosing any row or column, and toggling each value in that ro ...
分类:
其他好文 时间:
2018-07-29 12:56:22
阅读次数:
161
题目描述: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally m ...
分类:
其他好文 时间:
2018-07-29 11:49:14
阅读次数:
189
混淆矩阵 在机器学习领域中,混淆矩阵(confusion matrix)是一种评价分类模型好坏的形象化展示工具。其中,矩阵的每一列表示的是模型预测的样本情况;矩阵的每一行表示的样本的真实情况。 举个经典的二分类例子: 混淆矩阵是除了ROC曲线和AUC之外的另一个判断分类好坏程度的方法,通过混淆矩阵我 ...
分类:
其他好文 时间:
2018-07-28 13:42:53
阅读次数:
821
1:效果图 2:源码 Shader "Custom/uiblood" { Properties { [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} _CloudTex("噪声",2D) ="white"{} _Color ...
分类:
其他好文 时间:
2018-07-26 16:19:17
阅读次数:
398
题目描述 编写一个高效的算法来判断 m x n 矩阵中,是否存在一个目标值。该矩阵具有如下特性: 每行中的整数从左到右按升序排列。 每行的第一个整数大于前一行的最后一个整数。 示例 1: 输入: matrix = [ [1, 3, 5, 7], [10, 11, 16, 20], [23, 30, ...
分类:
其他好文 时间:
2018-07-26 14:56:29
阅读次数:
145
[TOC] 一、The installing of "matplotlib" matplotlib is matrix plotting library. 二、The Result Of Installing The Unknown Word The First Column | The Secon ...
分类:
其他好文 时间:
2018-07-25 19:06:35
阅读次数:
171