목록전체 글 (40)
유진정의 기록
보호되어 있는 글입니다.

제공 데이터셋 : TEST.csv: TRAIN.csv: SAMPLE_SUBMISSION.csv BASE LINE CODE로 제시된 코드이다. 우선, Random Seed를 고정한다.이 뒤로 데이터를 휘저을 때 자꾸 휘저을까봐 한번 휘저어서 저장해버리는 느낌으로 이해하면 된다.import numpy as npimport randomimport osdef seed_everything(seed): random.seed(seed) os.environ['PYTHONHASHSEED'] = str(seed) np.random.seed(seed)seed_everything(42) import pandas as pdtrain_df = pd.read_csv('/content/train.csv')test_d..
보호되어 있는 글입니다.
https://leetcode.com/problems/two-sum/ LeetCode - The World's Leading Online Programming Learning PlatformLevel up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.leetcode.comGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.You may assume tha..