当前位置:网站首页>使用kaggle跑李宏毅机器学习作业
使用kaggle跑李宏毅机器学习作业
2022-07-17 04:08:00 【loco_monkey】
以hw4为例
注册kaggle账号需要tizi来获取验证码,之后登录不需要tizi
使用GPU需要填写手机号,也需要tizi进行验证码验证,每周有37小时的gpu使用时间,也可以使用cpu
1.首先读取训练数据
根据右侧目录结构
修改读取数据集的路径
def parse_args():
"""arguments"""
config = {
#修改读取数据集的路径
"data_dir": "/kaggle/input/ml2022spring-hw4/Dataset",
"save_path": "model.ckpt",
"batch_size": 32,
"n_workers": 8,
"valid_steps": 2000,#2000
"warmup_steps": 1000, #1000
"save_steps": 10000, #10000
"total_steps": 70000, #70000
}
2.读取训练集地址/保存模型地址/test数据集预测结果
def parse_args():
"""arguments"""
config = {
"data_dir": "/kaggle/input/ml2022spring-hw4/Dataset",
"model_path": "/kaggle/working/model.ckpt",
"output_path": "/kaggle/working/output.csv",
}
return config
3.使用pip
首先将右侧internet开启
pip前记得加 !
边栏推荐
- 64. 最小路径和:给定一个包含非负整数的 m x n 网格 grid ,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。 说明:每次只能向下或者向右移动一步。
- Intel helps open medical service and promote the intellectualization of ultrasonic prenatal examination
- STM32 - timer series (II) general timer
- Chapter 0 performance platform godeye source code analysis - Course Introduction
- OSPF基础优化
- 小程序毕设作品之微信电子书阅读小程序毕业设计(6)开题答辩PPT
- MAUI 框架入門學習05 MVVM數據模型理解
- AttributeError: ‘NoneType‘ object has no attribute ‘sort‘
- Wechat Online Education video on Demand Learning of applet Graduation Design (3) Background Function
- Wechat e-book reading of small program graduation project (4) opening report
猜你喜欢

In the era of super video, what is the solution to the data flood?

安全第三天iptables防止nmap扫描以及binlog

基于stm32f103的智能风扇系统

分布式笔记(02)— 分布式缓存之 Redis(用途、特点、高可用方案 Redis Cluster、Twemproxy、Codis 简要说明)

Unity - how to modify a package or localize it

小程序毕设作品之微信电子书阅读小程序毕业设计(4)开题报告

模拟服务器进行请求

High performance and economy: aoteng persistent memory helps mobile cloud cope with severe memory challenges

Intel + Lenovo jointly launched open source cloud solutions

Wechat e-book reading of small program graduation project (4) opening report
随机推荐
Wechat e-book reading applet graduation project (8) graduation project thesis template
wpf 找不到资源文件问题
CAD视频课程推荐 b站
Xcode11 add a boot page (the launch images source option is missing after the upgrade)
Brief introduction to cmtime
Touchid and faceid~2
[database] must know and be able at the end of the term ----- Chapter VIII database security
Machine learning 10: Integrated Learning
[super cloud terminal to create a leading opportunity] local computing cloud management, Intel helps digitalize Education
Chapter 6 performance platform godeye source code analysis - Custom expansion module
ospf综合实验
小程序毕设作品之微信电子书阅读小程序毕业设计(2)小程序功能
Touchid and faceid~1
leetcode7-dfs+动态规划+双指针
WPF cannot find resource file problem
Structure gets the address of the main structure (struct) through member variables
笔记本电脑插入耳机仍然外放(亲测有效)
基于stm32f103的智能风扇系统
Deconstruction of typescript array / object / string / function parameters
MAUI 框架入门学习05 MVVM数据模型理解