- 博客(16)
- 资源 (15)
- 收藏
- 关注
原创 xgboost代码示例
之前写过很久了,怕新更新的xgboost不再适用,重新调试了一下代码,可运行,但数据得换成自己的,xgboost,都应该知道它的威力了,这里不再多说,欢迎一起讨论!# coding=utf-8import pandas as pdimport xgboost as xgbfrom sklearn import metricsimport matplotlib.pylab as plt
2017-05-20 19:28:05 3553 1
原创 遗传算法之基因型与表现型的相互转换
思想从生物上讲:基因型:性状染色体的内部表现。表现型:染色体决定性状的外部表现,或者说,根据基因型形成的个体。也即,基因型决定表现型。在遗传算法中,整个流程操作的对象都是基因(即0和1的情况),所以第一步要做从表现型到基因型的转换,转换需要分成几种情况:自变量是离散整数值的情况自变量是连续值的情况情况一:当要优化的自变量是离散整数值的
2017-05-20 01:24:20 5298 2
原创 遗传算法应用于随机森林的调参过程
背景其实不管调参的对象的是随机森林,还是其他分类器,遗传算法都是作为分类器对其超参数进行调优的工具,当然,遗传算法是一个贪心算法,只能接近于最优解,类似的算法还有比如退火算法、蚁群算法等等,关于遗传算法的详解这里不再多说,网上参考有很多:http://blog.csdn.net/b2b160/article/details/4680853/ (非常好的理解遗传算法的例子)
2017-05-19 18:32:03 10760 24
原创 LeetCode 3: Longest Substring Without Repeating Characters
题目描述:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is"abc", which the length is 3.Given "bbbbb", the answer is
2017-05-17 22:44:52 387
原创 Sum—LeetCode-445 Add Two Numbers II
题目描述:You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and
2017-05-17 15:50:35 459
原创 Sum—LeetCode-415 Add Strings
题目描述:Given two non-negative integers num1 andnum2 represented as string, return the sum ofnum1 and num2.Note:The length of both num1 andnum2 is Both num1 andnum2 contains only digits
2017-05-15 00:45:50 322
原创 Sum—LeetCode-371 Sum of Two Integers
题目描述:Calculate the sum of two integers a and b, but you are not allowed to use the operator + and-.Example:Given a = 1 and b = 2, return 3.思想:(1)两个数异或,相当于两个数的二进制不带进位相加 (2)两个
2017-05-15 00:21:47 286
原创 Sum—LeetCode-43 Multiply Strings
题目描述:Given two non-negative integers num1 andnum2 represented as strings, return the product ofnum1 and num2.Note:The length of both num1 andnum2 is Both num1 andnum2 contains only d
2017-05-14 17:46:55 243
原创 Sum—LeetCode-67 Add Binary
题目描述:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".public String addBinary(String a, String b) { int len = Math.max(
2017-05-12 14:55:24 277
原创 Sum—LeetCode-560 Subarray Sum Equals K
题目描述:Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals tok.Example 1:Input:nums = [1,1,1], k = 2Output: 2Not
2017-05-12 11:24:02 502
原创 Sum—LeetCode-167 Two Sum II Input array is sorted
题目描述:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two
2017-05-11 18:14:55 272
原创 Sum—LeetCode-454 4Sum II
Given four lists A, B, C, D of integer values, compute how many tuples(i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make problem a bit easier, all A, B, C, D have same le
2017-05-11 17:19:58 416
原创 Sum—LeetCode-18 4Sum
题目描述:Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: The
2017-05-09 19:35:37 239
原创 Sum—LeetCode-15 3Sum
问题描述:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must no
2017-05-09 17:07:49 387
原创 Sum—LeetCode-1 Two Sum
题目描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not us
2017-05-08 23:10:08 313
原创 2017年6月-9月学习计划
算法(基础部分,不能丢):数据结构基础,没事翻翻 LeetCode(定期做题)《数据挖掘导论》,没事翻翻留意Kaggle、阿里天池、DataCastle比赛Java部分:Java并发,多写程序,工程中的TTP框架,多学习并发框架及内部原理Spring源码部分,结合工程来看中间件侧重于Kafka来研究、databusJava基础,多去思考
2017-05-08 19:17:34 645
jdk9下载,包括windows 和 mac
2023-05-27
基于Spring Boot+Mybatis的博客管理平台源代码
2023-02-26
基于 Spring Boot 的 Camunda 请假流程 demo 示例
2023-02-19
Activiti5 请假流程 demo 代码示例
2023-02-19
流程引擎jBPM demo及Spring Boot示例
2023-02-15
基于 Spring MVC 和 MyBatis 的图书馆管理简单系统,功能齐全且很容易上手
2023-02-07
豆瓣电影评论分析(含数据)
2022-04-09
Zen Coding-Notepad++.v0.7.zip
2015-04-22
API文档集合
2015-02-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人