전체 글(334)
-
Diabetes prediction model
#%%import pandas as pd import matplotlib.pyplot as plt import torch from torch import nn from sklearn.model_selection import train_test_splitdf = pd.read_csv("diabetes.csv")y = df["Outcome"]X = []for i,rows in df.iterrows(): X.append([rows["Pregnancies"],rows["Glucose"],rows["BloodPressure"],rows["SkinThickness"],rows["Insulin"],rows["BMI"],rows["DiabetesPedigreeFunction"],rows["Age"]])X = to..
2024.04.29 -
CSV data 다루기
1. CSV 데이터 다룰때 유용한 팁data = dataframe일때for i,rows in data.iterrows(): X데이터.append(rows["col1"],rows["col2"] ...)
2024.04.29 -
Food Microbiology mid term exam 정리
1장 1. Mold Genera( 곰팡이속 ) --> low ph, low Aw, high osmotic pressure에서도 자랄 수 있음. --> 예시, Aspergillus(spoilage,bioprocessing,fermentation) , Alternaria ( black rots of stone fruits, apples, rancid flavor in dairy) , Penicillium(푸른곰팡이), Rhizopus(거미줄곰팡이) 2. Yeast Genera (효소속) --> saccaharomyces (fermentation, spoilage) , Rhodotorula(discoloration,psychrotrophic), Zygosaccharomyces(high acid food spo..
2024.04.21 -
[Leetcode] 154. Find Minimum in Rotated Sorted Array II
Problem: Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,4,4,5,6,7] might become: [4,5,6,7,0,1,4] if it was rotated 4 times. [0,1,4,4,5,6,7] if it was rotated 7 times. Notice that rotating an array [a[0], a[1], a[2], ..., a[n-1]] 1 time results in the array [a[n-1], a[0], a[1], a[2], ..., a[n-2]]. Given the sorted rotate..
2024.04.10 -
[Leetcode] 153. Find Minimum in Rotated Sorted Array
Problem: Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become: [4,5,6,7,0,1,2] if it was rotated 4 times. [0,1,2,4,5,6,7] if it was rotated 7 times. Notice that rotating an array [a[0], a[1], a[2], ..., a[n-1]] 1 time results in the array [a[n-1], a[0], a[1], a[2], ..., a[n-2]]. Given the sorted rotate..
2024.04.08 -
[Leetcode] 81. Search in Rotated Sorted Array II
Problem: There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values). Before being passed to your function, nums is rotated at an unknown pivot index k (0
2024.04.08