衡量模型泛化能力的评价标准,就是性能度量(performance measure)。 (1)错误率与精度 (2)查准率、查全率与F1 基于样例真实类别,可将学习器预测类别的组合划分为真正例(true positive)、假正例(false positive)、真反例(true negative)、假 ...
分类:
其他好文 时间:
2019-06-16 23:13:32
阅读次数:
200
题目描述 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there i ...
分类:
其他好文 时间:
2019-06-13 15:35:07
阅读次数:
85
Source: PAT A1105 Spiral Matrix (25 分) Description: This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increa ...
分类:
其他好文 时间:
2019-06-08 19:00:55
阅读次数:
125
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2019-06-04 22:07:27
阅读次数:
101
Source: PAT A1127 ZigZagging on a Tree (30 分) Description: Suppose that all the keys in a binary tree are distinct positive integers. A unique binary ...
分类:
其他好文 时间:
2019-05-31 23:14:44
阅读次数:
80
5. 朴素贝叶斯视频 举个在 NLP 的应用 给一段文字,返回情感分类,这段文字的态度是positive,还是negative 为了解决这个问题,可以只看其中的一些单词 这段文字,将仅由一些单词和它们的计数代表 原始问题是:给你一句话,它属于哪一类 通过 bayes rules 变成一个比较简单容易 ...
分类:
编程语言 时间:
2019-05-28 17:05:22
阅读次数:
150
一、预选赛题 文本情感分类模型 本预选赛要求选手建立文本情感分类模型,选手用训练好的模型对测试集中的文本情感进行预测,判断其情感为「Negative」或者「Positive」。所提交的结果按照指定的评价指标使用在线评测数据进行评测,达到或超过规定的分数线即通过预选赛。 二、比赛数据 训练集数据:(6 ...
分类:
其他好文 时间:
2019-05-26 19:54:49
阅读次数:
220
1053. Previous Permutation With One Swap https://leetcode.com/problems/previous-permutation-with-one-swap/ 题意:Given an array A of positive integers (n ...
分类:
其他好文 时间:
2019-05-26 14:25:09
阅读次数:
121
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro ...
分类:
其他好文 时间:
2019-05-24 18:45:09
阅读次数:
116
Return any binary tree that matches the given preorder and postorder traversals. Values in the traversals and are distinct?positive integers. Example ...
分类:
其他好文 时间:
2019-05-23 00:01:38
阅读次数:
136