当前位置:网站首页>Kaggle calls the custom module method
Kaggle calls the custom module method
2022-07-27 06:35:00 【Segment*Fault】
【 Problem description 】
Whoring for nothing Kaggle It's been a while , Want to call the custom module , I don't know how to use .
【 terms of settlement 】
- First compress the relevant code into zip file .
- Upload zip File to input

- After successful upload , stay input Column has its own bag , If input Don't have your own bag , The point of Your DataSet Select the dataset you just uploaded .

- add to input Catalog
# First add input Catalog
import sys
sys.path.append('../input')
print(sys.path)
- The import module
from Folder name . Module name import modular
【 Concrete practice 】
To import ge The folder classify.py File as an example ,
# First add input Catalog
import sys
sys.path.append('../input')
print(sys.path)
# Then press package name . Folder . Just import the file directly
from gembed.ge.classify import read_node_label, Classifier
边栏推荐
- Iptables firewall, SNAT and DNAT
- C language minesweeping latest recursive expansion super detailed explanation (with source code)
- 源码编译安装LAMP和DISCUZ论坛
- Array and subscript index
- Programming learning records - Lesson 3 [first knowledge of C language]
- Introduction to hash table
- Reading and writing of file content - data flow
- shell之if条件语句
- Automatic tracking
- Knowledge supplement of multithreading
猜你喜欢

Joint query of database

Array and subscript index

Non photorealistic rendering (NPR) paper understanding and reproduction (unity) - stylized highlights for cartoon rendering and animation

哈希表简介

PXE efficient batch network installation

Reading and writing of file content - data flow

单元集成(接⼝)测试

Wireshark packet modification -- IP address modification (I)

文件内容的读写——数据流

Interpretation of unity desktop version 7.6
随机推荐
Programming learning records - Lesson 3 [first knowledge of C language]
Source code compilation and installation lamp and discuz Forum
接口测试概念及Postman工具简介使用
Shell script if nested for loop script
Li Kou's first week's wrong question set
Detailed explanation of thread safety problems
Robot navigation
rsync远程同步
Seven sorting details
Constraints and design of database
网络故障排查:用户VLAN下用户无法收到组播报文故障(IGMP Snooping)
面试常问的问题总结【呕心沥血熬了一个晚上总结的】
Iptables firewall, SNAT and DNAT
接口测试流程及面试问题
Three ways to get RPM packages using yum
英语基础知识:定语使用规则下篇
英语基础知识:非谓语使用规则上篇
数据库在终端的增删改查
PXE高效批量网络装机
Summary of Internet simple protocol