
Python
mooe1011
这个作者很懒,什么都没留下…
展开
-
记录一下一次小型kaggle比赛 QBUS6810 Classification Challenge,逻辑回归,处理连续型和离散型数据
前言目前是小型比赛的public lb第四名,自己对此也比较满意了,从中也学到不少知识。发个图纪念一下,从一开始的0.76,到0.85,再到现在0.86139,每一次的进步都来之不易。之后private lb选了一个比较低的提交,因为是校外的,就不影响他们的成绩了。这个比赛的目标是给出一些市场的环境,预测消费者会不会在该环境进行消费。接下来简单的复盘一下:1. ED...原创 2019-11-13 14:45:13 · 895 阅读 · 0 评论 -
sklearn 波士顿房价 线性回归
参考链接:https://blog.youkuaiyun.com/u013869488/article/details/78244923 https://blog.youkuaiyun.com/CalvinHARRIS/article/details/83588673 https://cloud.tencent.com/developer/article/1331849 https://blog.csdn.ne...原创 2019-08-26 15:31:05 · 1573 阅读 · 0 评论 -
LeetCode 925. Long Pressed Name Python 使用re
Your friend is typing hisnameinto a keyboard. Sometimes, when typing a characterc, the key might getlong pressed, and the character will be typed 1 or more times.You examine thetypedcharacter...原创 2019-07-03 11:13:01 · 236 阅读 · 0 评论 -
【Python网络爬虫与信息提取】.MOOC. 北京理工大学 bs4+requests+re+scrapy 截屏笔记
零基础建议可以先看python语法,然后看看《Python3 网络爬虫开发实战》此为b站上北理爬虫的截屏笔记,每课的代码都在里面了,配合视频回顾p17p18p19可用devtoolp23查看父亲节点查看标签p24 bs遍历soup.body下面有...原创 2019-06-15 21:46:58 · 681 阅读 · 0 评论 -
LeetCode 299. Bulls and Cows C++ & python zip
You are playing the followingBulls and Cowsgame with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint tha...原创 2019-06-03 16:12:52 · 362 阅读 · 0 评论 -
Selenium简单模拟淘宝搜索
首先下载chrome driver和安装Selenium库。然后把chrome driver解压到chrome的目录下面。如果有报错 'chromedriver' executable needs to be in PATH 就只需要将将chrome的目录添加到(windows)用户环境变量的path里面即可参考:Python3网络爬虫开发实战from selenium...原创 2019-06-13 20:36:25 · 621 阅读 · 0 评论 -
爬取知乎发现首页 requests+pyquery
本人的第一次爬虫,爬取后的文章保存在txt文件里。参考:python3 网络爬虫开发实战import requestsfrom requests import RequestExceptionfrom pyquery import PyQuery as pqurl = 'https://www.zhihu.com/explore'headers = { 'User-Ag...原创 2019-06-12 18:58:31 · 469 阅读 · 0 评论 -
LeetCode 56. Merge Intervals C++ 比较器 与 Python 两种语言
Given a collection of intervals, merge all overlapping intervals.Example 1:Input: [[1,3],[2,6],[8,10],[15,18]]Output: [[1,6],[8,10],[15,18]]Explanation: Since intervals [1,3] and [2,6] overlaps...原创 2019-05-30 21:15:48 · 198 阅读 · 0 评论 -
LeetCode 1029. Two City Scheduling C++ 比较器 另加Python
There are2Npeople a company is planning to interview. The cost of flying thei-th person to cityAiscosts[i][0], and the cost of flying thei-th person to cityBiscosts[i][1].Return the ...原创 2019-05-16 16:39:11 · 382 阅读 · 0 评论 -
win10 BERT fine-tuning MRPC句子对分类任务实战
说明:GLUE (General Language Understanding Evaluation) 数据集:为了能够标准化的和综合性的评估NLU(自然语言理解)算法和模型而构造出来的一套包含数据集,在线评估平台的工具。其中包含了九个数据集,其中MRPC(Microsoft Research Paraphrase Corpus)是微软的语料库,收录了3600对句子并标注每对句子是否在语义...原创 2019-05-06 16:18:30 · 4749 阅读 · 13 评论 -
一文看懂win10 tensorflow-gpu 1.11.0 安装及配置,以及各种报错
装tensorflow cpu版本还是很简单的,装gpu版本则要一步步来,而且要仔细看报错。电脑配置:win10 64位 python3.6.7 64位 Anaconda 2019.03版 华硕gtx1060 6g主要步骤:根据显卡安装cuda 根据cuda安装cudnn 安装tensorflow-gpu主要下载的网站:cuda:https://develope...原创 2019-04-15 15:34:17 · 1120 阅读 · 0 评论 -
Win10 64位 Anaconda python3.6 下安装pygame
pygame船新版本1.9.5,网址https://pypi.org/project/pygame/按需选择32位/64位我的系统win10 64位 py3.6版本下载后打开Anaconda(管理员权限),输入pip install *你下载的地址和文件名称*。(不要用conda install)安装成功后输入python,再输入import pygame查看安装是否成功...原创 2019-04-14 09:38:40 · 519 阅读 · 0 评论 -
基于神经网络进行mnist手写数字识别
识别率可达99%,官网是py3.0版本以下,我改成了py3.0以上可用数据集以及参考:http://www.tensorfly.cn/tfdoc/tutorials/mnist_pros.htmlinput_data.py# #!/usr/bin/python# # coding:utf-8# 用于下载和读取MNIST数据的函数from __future__ import a...原创 2019-04-01 22:14:41 · 1195 阅读 · 0 评论 -
老电脑也要玩tensorflow,解决AVX、SEE、SEE2等报错之路
用宏碁5750g来跑mnist手写识别的神经网络,真的是慢。我原来的配置是i5,2g内存,gt540m,用显卡跑是没希望了,后来升级为i7 2760qm和6g内存。刚开始跑的时候说我的电脑可以用AVX,于是有了这篇文章。本文适合显卡不高、windows系统的电脑参考:https://blog.youkuaiyun.com/wlwlomo/article/details/82806118...原创 2019-04-01 22:59:17 · 4765 阅读 · 1 评论 -
机器学习-1 用ARIMA预测裙摆长度 python版
第一次做机器学习,选了个最简单的,并附上python代码参考R语言版:https://www.cnblogs.com/ECJTUACM-873284962/p/7379717.html ——2018年12月...原创 2019-03-02 17:08:07 · 1669 阅读 · 1 评论