当前位置:网站首页>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
边栏推荐
猜你喜欢

Ram of IP core

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

Related knowledge of multithreading

Strategies for common locks in multithreading

Unity practical tips (updating)

Simple understanding of network principle

Install Wireshark correctly

单元集成(接⼝)测试

Source code compilation and installation lamp and discuz Forum

Robot navigation implementation
随机推荐
Programming learning records - Lesson 9 [operators]
Simple understanding of network principle
The concept of interface testing and the use of postman tools
Three ways to get RPM packages using yum
FTP服务器的搭建
shell编程规范与变量
Wireshark packet modification -- adding or modifying message fields (2)
Establishment of FTP server
Sexy prime number (acwing daily question)
[first blog - outlook]
Shell脚本编写格式
关于testng相关标签的使用
Linu performance tuning: how can we alleviate the situation in the face of DDoS attacks?
iptables防火墙及SNAT和DNAT
PXE efficient batch network installation
About the use of TestNG related tags
Unityshader depth texture (understanding and problems encountered)
Addition, deletion, modification and query of the database at the terminal
Shell script if nested for loop script
Stress performance test of website based on AB tool under Apache