신호생성 repo (24. 1. 5 ~).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

111 lines
3.1 KiB

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import pandas as pd\n",
"import numpy as np\n",
"import sys\n",
"sys.path.append('../../Scripts')\n",
"from preprocess_daily import DailyPreprocessor\n",
"from generate_signals import SignalGenerator"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. 데이터를 로드합니다.\n",
"1-1. 네트워크가 로드되었습니다.\n",
"1-2. 테이블들이 로드되었습니다.\n",
"1-3. 네트워크의 모든 clean state requirement들을 체크했습니다.\n",
"1-4. 테이블들의 무결성 검사를 완료했습니다.\n",
"1-5. 주요 객체 (리스트, 딕셔너리)들을 저장했습니다.\n",
"2. 중간산출물을 생성합니다.\n",
"2-1. 매칭 테이블들을 생성했습니다.\n",
"2-2. 초기화 신호가 지정되었습니다. (우회전 : g)\n",
"2-3. 유턴 인덱스 / 비보호좌회전 인덱스를 지정했습니다.\n",
"2-4. 직진 및 좌회전(G)을 배정했습니다.\n",
"2-5. node2num_cycles.json를 저장했습니다.\n",
"3. 이슈사항을 저장합니다.\n",
"1. 데이터를 준비합니다.\n",
"1-1. 네트워크가 로드되었습니다.\n",
"1-2. 테이블들이 로드되었습니다.\n",
"2. 신호이력 테이블을 변환합니다.\n",
"3. 이동류정보 테이블을 변환합니다.\n",
"4. 통합 테이블을 생성합니다.\n",
"5. 신호를 생성합니다.\n",
"6. 이슈사항을 저장합니다.\n",
"(1) 0:00:00.043278\n",
"(1-1) 0:00:00.015429\n",
"(1-2) 0:00:00.021066\n",
"(1-3) 0:00:00\n",
"(1-4) 0:00:00\n",
"(1-5) 0:00:00.006783\n",
"(2) 0:00:00.379330\n",
"(2-1) 0:00:00.083176\n",
"(2-2) 0:00:00.272100\n",
"(2-3) 0:00:00.024054\n",
"(3) 0:00:00.561777\n",
"(3-1) 0:00:00.541159\n",
"(3-2) 0:00:00.020618\n",
"(4) 0:00:00.180089\n",
"(4-1) 0:00:00\n",
"(4-2) 0:00:00.017247\n",
"(4-2) 0:00:00.162842\n",
"(5) 0:00:00.646848\n",
"(5-1) 0:00:00.015638\n",
"(5-2) 0:00:00.631210\n",
"(5-3) 0:00:00\n",
"(6) 0:00:00\n",
"total time : 0:00:01.811322\n"
]
}
],
"source": [
"dp = DailyPreprocessor()\n",
"dp.path_networks\n",
"dp.main()\n",
"sg = SignalGenerator()\n",
"sg.main()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "ta",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
}
},
"nbformat": 4,
"nbformat_minor": 2
}