Finite

  • 홈
  • 방명록

2024/05/16 1

167_Simple Regression Model using PyTorch(2)

Continuing from the last posting, I will write the code and provide explanations. def calculate_accuracy(y_true, y_pred): predicted = y_pred.ge(.5).view(-1) return (y_true == predicted).sum().float() / len(y_true)def round_tensor(t, decimal_places = 3): return round(t.item(), decimal_places) The calculate_accuracy function calculates and returns the model's prediction accuracy by determ..

Deep Learning 2024.05.16
이전
1
다음
더보기
프로필사진

Learning and sharing my interests

  • All Categories (173)
    • Deep Learning (44)
    • Finite Element Method (37)
    • Fluid Dynamics (9)
    • Optimization Technique (25)
    • Numerical Methods (30)
    • Paper Review (1)
    • Structural Analysis (24)
      • OptiStruct (15)
      • COMSOL (7)
      • Ansys (2)
    • CFD (3)
      • Ansys Fluent (3)

Tag

Fea, buckling, optistruct, HyperMesh, mechanical vibration, static, COMSOL, nonlinear, modal, FEM, hypercrash, Linear, Cantilever Beam, pendulums, Vibration, impact analysis, finite element method, finite element, weighted residual methods, radioss,

최근글과 인기글

  • 최근글
  • 인기글

Archives

Calendar

«   2024/05   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Sh_Lee. All rights reserved.

티스토리툴바