분류 전체보기 (108) 썸네일형 리스트형 [블럭 장난감 제조 공정 최적화] discrete action space ppo 모델 import gym import numpy as np import pandas as pd import math from simulator import Simulator class FactoryEnv(gym.Env): def __init__(self, is_train): self.is_train = is_train self.simulator = Simulator() self.order_data = pd.read_csv("data/order.csv") for i in range(40): self.order_data.loc[91+i,:] = ['0000-00-00', 0, 0, 0, 0] self.submission = pd.read_csv("data/sample_submission.csv") self.wor.. [블럭 장난감 제조 공정 최적화] cal_score def cal_score(self, blk_diffs): # Block Order Difference blk_diff_m = 0 for item in blk_diffs: if item 0: blk_diff_p = blk_diff_p + abs(item) score = blk_di.. [ADsP]4.데이터분석 파트 연습문제 및 풀이 - 문제 풀면서 개념 다지기 그래프 표현이 자료안에 숨겨짂 정보를 보여주는 효율적인 수단이 된다. 탐색적 자료분석에서는 다양핚 그래프 작성 기법들이 사용된다. [ADsP] 3. 주관식 대비 데이터분석 파트 빠르게 정리하기 [ADsP]2. 확률변수 개념정리 및 문제풀이 [ADsP]2. 확률변수 개념정리 및 문제풀이 [ADsP] ADsp시험정보 get_score함수 내부함수 결과정리 out_1 = self.cal_schedule_part_1(df) out_2 = self.cal_schedule_part_2(df, line='A') out_3 = self.cal_schedule_part_2(df, line='B') out = out_1 + out_2 + out_3 out = self.add_stock(out, self.stock) order = self.order_rescale(out, self.order) out, blk_diffs = self.cal_stock(out, order) score = self.cal_score(blk_diffs) simulator.get_score(submission) 분석 1) genome.score, _ = simulator.get_score(submission) 실행 get_score함수는 다음과 같다. 이에 대하여 차례대로 분석해 보자. def get_score(self, df): df = self.subprocess(df) #df는 predict해서 나온 결과. 그 안에 subprocess를 넣으면? #out_1, 2, 3가 의미하는 바는 뭘까?? out_1 = self.cal_schedule_part_1(df) out_2 = self.cal_schedule_part_2(df, line='A') out_3 = self.cal_schedule_part_2(df, line='B') out = out_1 + out_2 + out_3 out = self.add_stock(.. [Ubuntu 20.04LTS] Connecting airopods pro as headset The package was removed from Debian Unstable at 2019-09-13, so it will not be until official port to Qt5. You can install it from some third-party PPA: sudo add-apt-repository ppa:smoser/bluetooth sudo apt-get install ofono-phonesim askubuntu.com/questions/831331/failed-to-change-profile-to-headset-head-unit Failed to change profile to headset_head_unit I got the Sony MDR-ZN770BN connected to my.. 이전 1 ··· 5 6 7 8 9 10 11 다음