git에 올릴 때는 .py 파일로 (eda 등 시각화 필요하면 .ipynb 사용)
type annotation ex) def func(x: pd.DataFrame) → list :
in, out shape 주석 (doc string 방식 선호)
def forward(self, edge_index: torch.tensor) -> torch.tensor :
"""
Forward pass through the network.
Args:
edge_index : Tensor of edge indices. Shape : (2, n_edges)
Returns:
pred : Predicted output. Shape : (n_edges)
"""
수동으로 쓰지 마셈 ㅜㅜㅜㅜㅜㅜ
camel vs snake → ruff가 이거 잡아줄텐데…?
이유를 적지않아도 자동화할까?