自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 游戏论坛利用AI审核的高效应用

与传统的社交渠道相比,网络游戏社交平台的媒体内容制作模式、沟通模式和组织合作模式有很大的不同,最明显的区别是信息制作和信息传播的分离。目前,主流聚合平台主要负责信息的传播和运营。游戏论坛上的内容种类繁多,内容质量参差不齐,一切混淆视听的负面评论同样也会带来内容风险,也有可能影响游戏子文化的生产。因而上传的论坛内容必须经过审核才能传播,平台的功能内容审计团队对人工智能算法也因此有很大的需求。人工智能审计可以通过机器人文本识别技术标记论坛帖子与评论中可疑的非法内容。结合过滤、召回和删除的手段去.

2022-06-30 20:27:11 159

转载 内容安全的主要场景有哪些呢?

在当下环境中,互联网运营者有时会不知如何管理内容安全。聊天信息、短信、文章和直播视频充满了内容安全风险,因此在市场上发展出了多家内容审核的企业,为有需求的公司提供内容安全的核心能力。以下是AI识别业务中的常见场景:场景一:UGC内容智能审核UGC内容主要分为几类。首先是会员区,在互联网场景中,需要管理会员区的许多内容(会员头像、会员名称、会员屏幕切割)。由于某些平台管理是不可以擅自更改会员信息,因此必须管理会员区域。其次就是其他互动类别,如市面上常见的游戏世界频道可能存在的不良言论需..

2022-06-28 16:53:46 245

原创 【dp刷题】奇怪的打印机-664

def strangePrinter(self, S): memo = {} def dp(i, j): if i > j: return 0 if (i, j) not in memo: ans = dp(i+1, j) + 1 for k in xrange(i+1, j+1): if S[k] == S[i]: ans = mi.

2020-05-15 10:26:32 237

原创 【dp刷题】多边形三角剖分的最低得分-1039

class Solution: def minScoreTriangulation(self, A): length = len(A) inf = float('inf') dp = [[inf for _ in range(length)] for _ in range(length)] for i in range(length - 1): dp[i][i + 1] = 0 for d .

2020-05-11 18:12:54 204

原创 【dp刷题】统计不同回文子字符串-730

class Solution: def countPalindromicSubsequences(self, S): lens = len(S) dp = [[1 for _ in range(lens)] for _ in range(lens)] for i in range(lens-2,-1,-1): for j in range(i+1,lens): if S[i] == S[j]:.

2020-05-11 10:49:23 169

原创 【dp刷题】最长回文子序列-516

class Solution: def longestPalindromeSubseq(self, s): '''dp[i][j]表示从i到j,最长子序列长度 状态转移方程: if dp[i] == dp[j]:dp[i][j] = dp[i+1][j-1] + 2 else: dp[i][j] = max(dp[i][j-...

2020-05-06 18:39:30 291

原创 【dp刷题】正则表达式匹配-10

class Solution: def isMatch(self, s, p): if not p: return not s if not s and len(p) == 1: return False m, n = len(s) + 1, len(p) + 1 dp =...

2020-05-06 10:31:48 539

原创 【dp刷题】通配符匹配-44

class Solution: def isMatch(self, s, p): sn = len(s) pn = len(p) dp = [[False] * (pn + 1) for _ in range(sn + 1)] dp[0][0] = True for j in range(1, pn + 1)...

2020-05-04 20:03:52 160

原创 【dp刷题】买卖股票的最佳时机含手续费-714

class Solution(object): def maxProfit(self, prices, fee): n = len(prices) if n < 2: return 0 ans = 0 minimum = prices[0] for i in range(1, ...

2020-04-29 21:03:31 153

原创 【dp刷题】最佳买卖股票时机含冷冻期-309

class Solution(object): def maxProfit(self, prices): if not prices: return 0 n = len(prices) dp = [[0, 0] for _ in range(n + 1)] prices.insert(0, 0)...

2020-04-28 22:31:47 161

原创 【dp刷题】买卖股票的最佳时机4-188

class Solution: def maxProfit(self, k, prices): if len(prices) <= 1: return 0 if (k < len(prices) // 2): dp = [[-prices[0], 0] for i in range(k+1)] ...

2020-04-27 18:06:26 176

原创 【dp刷题】买卖股票的最佳时机3-123

class Solution: def maxProfit(self, prices): if not prices: return 0 n = len(prices) dp = [[[0 for i in range(2)] for i in range(3)] for i in range(n)] for k in ra...

2020-04-26 10:45:34 137

原创 【dp刷题】买卖股票的最佳时机2-122

class Solution: def maxProfit(self, prices): gains = [prices[i] - prices[i-1] for i in range(1, len(prices)) if prices[i] - prices[i-1] > 0] return sum(gains)...

2020-04-24 18:28:11 115

原创 【dp刷题】买卖股票的最佳时机-121

class Solution: def maxProfit(self, prices): if not prices: return 0 min_price = float('inf') max_profit = 0 for price in prices: if price < min_p...

2020-04-23 18:24:57 163

原创 【dp刷题】打家劫舍3-337

# Definition for a binary tree node.# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right = Noneclass Solution: def dp(self, cur...

2020-04-23 09:58:44 201

原创 【dp-刷题】打家劫舍2-213

class Solution: def rob(self, nums): if len(nums)==1:return nums[0] a,b,c,d = 0,0,0,0 for num in nums[:-1]: a,b = b,max(a+num, b) for num in nums[1:]:...

2020-04-21 18:20:31 144

原创 【dp刷题】打家劫舍-198

class Solution: def rob(self, nums): if not nums: return 0 length = len(nums) if length == 1: return nums[0] else: prev = nums...

2020-04-20 14:04:25 136

原创 【dp刷题】俄罗斯套娃信封问题-354

class Solution: def maxEnvelopes(self, envelopes): if not envelopes: return 0 res, n = 0, len(envelopes) envelopes.sort(key=lambda a:a[0]) mem...

2020-04-20 00:14:32 191

原创 【dp刷题】鸡蛋掉落(二分+dp)-887

class Solution: def superEggDrop(self, K, N): '''状态转移方程:dp[k][m] = dp[k - 1][m - 1] + dp[k][m - 1] + 1 dp[k][m]的含义是k个鸡蛋,移动m次最多能确定多少层 时间复杂度:O(k) ''' dp = [0...

2020-04-17 18:20:48 223

原创 【dp刷题】乘积最大子数组-152

class Solution: def maxProduct(self, nums): '''思路:维护一个最大乘积数组,和最小乘积数组,更新最大值 时间复杂度:O(n) ''' n = len(nums) max_dp = [1] * (n+1) min_dp = [1] * (n+1) ...

2020-04-16 18:44:12 112

原创 【dp刷题】最大子序和-53

class Solution: def maxSubArray(self, nums): '''思路:维护两个变量,一个当前最大和,一个全局最大和 状态转移方程:dp[i] = max(dp[i-1] + nums[i], nums[i]), 实际实现不需要数组 时间复杂度:O(n) ''' n = len(...

2020-04-15 14:40:23 102

原创 【dp刷题】三角形最短路径和-120

class Solution: def minimumTotal(self, triangle): '''思路:自下而上动态规划,状态转移方程:t[i][j] += min(t[i+1][j], t[i+1][j+1]) 时间复杂度:O(nm),m为最大列长度 ''' n = len(triangle) #行 ...

2020-04-14 10:46:06 147

原创 【dp刷题】最长公共子序列-1143

思路:维护一个动态规划表dp,其中第一行和第一列均赋值为0,dp[i]表示从i到j的最长子序列状态转移方程:找到相同元素时,给dp数组加一,不相同时,走可以让dp数组更大的方向时间复杂度:O(rc)class Solution: def longestCommonSubsequence(self, text1, text2): r = len(text1)...

2020-04-14 00:18:45 88

原创 最长上升子序列-300

思路:n为序列长度,用dp[i]记录当前位置i处最长上升子序列长度。状态转移方程为dp[i] = max(dp[i], dp[j] + 1)时间复杂度:O(n2)def lengthOfLIS(self, nums): if not nums: return 0 n, res = len(nums) dp = [1]*...

2020-04-12 21:59:01 60

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除