码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
矩阵快速幂模板
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
pandas as_matrix()
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
7.20 Codeforces Beta Round #8
链接:codeforces.com/contest/8 A 原因:RE,fantasy 的字符串的长度可能大于原字符串。 B 题意:上下左右走,可能要避让障碍,问是否存在一个地图使得给定的路径为当前最短路径。 题型:构造,模拟 原因:map不熟,要判两个地方,一是不重复抵达,二是当前点除去前导点旁边 ...
分类:其他好文   时间:2018-07-31 00:35:33    阅读次数:192
861. Score After Flipping Matrix
题目描述: 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
832. Flipping an Image
题目描述: 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混淆矩阵
混淆矩阵 在机器学习领域中,混淆矩阵(confusion matrix)是一种评价分类模型好坏的形象化展示工具。其中,矩阵的每一列表示的是模型预测的样本情况;矩阵的每一行表示的样本的真实情况。 举个经典的二分类例子: 混淆矩阵是除了ROC曲线和AUC之外的另一个判断分类好坏程度的方法,通过混淆矩阵我 ...
分类:其他好文   时间:2018-07-28 13:42:53    阅读次数:821
[Shader2D]漩涡效果
1:效果图 2:源码 Shader "Custom/uiblood" { Properties { [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} _CloudTex("噪声",2D) ="white"{} _Color ...
分类:其他好文   时间:2018-07-26 16:19:17    阅读次数:398
LeetCode 74. 搜索二维矩阵(Search a 2D Matrix)
题目描述 编写一个高效的算法来判断 m x n 矩阵中,是否存在一个目标值。该矩阵具有如下特性: 每行中的整数从左到右按升序排列。 每行的第一个整数大于前一行的最后一个整数。 示例 1: 输入: matrix = [ [1, 3, 5, 7], [10, 11, 16, 20], [23, 30, ...
分类:其他好文   时间:2018-07-26 14:56:29    阅读次数:145
installing the matplotlib via pip in the enviroment dos
[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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!