Tin Theethawat Savastham commited on
Commit
c717e13
·
1 Parent(s): 7c3bb11

✨ Update the sequence of Jupyter Notebook

Browse files
example/1-Basic-Model-Constructor.ipynb CHANGED
@@ -57,9 +57,13 @@
57
  "\n",
58
  "\n",
59
  "if run_from_online:\n",
60
- " repo = git.Repo.clone_from('https://huggingface.co/iaecpsu-1/tdce-basic',\n",
 
61
  " './tdce-basic',\n",
62
  " branch='main')\n",
 
 
 
63
  "\n",
64
  " # fmt:off\n",
65
  " sys.path.append('./tdce-basic/model')\n",
@@ -67,6 +71,12 @@
67
  " sys.path.append('./tdce-basic/functions')\n",
68
  " sys.path.append('./tdce-basic/functions/data_extractor')\n",
69
  "\n",
 
 
 
 
 
 
70
  " import tdce_model as tdce\n",
71
  " import material_fc_layer as mfl\n",
72
  " import employee_fc_layer as efl\n",
@@ -79,11 +89,7 @@
79
  " import result_display as rd\n",
80
  " import mini_plot as mp\n",
81
  " # fmt:on\n",
82
- " try:\n",
83
- " # For online execution, in Google Colab\n",
84
- " !pip install tensor-sensor\n",
85
- " except:\n",
86
- " pass\n",
87
  "\n",
88
  "else :\n",
89
  " # fmt:off\n",
 
57
  "\n",
58
  "\n",
59
  "if run_from_online:\n",
60
+ " try:\n",
61
+ " repo = git.Repo.clone_from('https://huggingface.co/iaecpsu-1/tdce-basic',\n",
62
  " './tdce-basic',\n",
63
  " branch='main')\n",
64
+ " except git.exc.GitCommandError:\n",
65
+ " print(\"Repository already exists or cannot be cloned. Continuing with existing files.\")\n",
66
+ " pass\n",
67
  "\n",
68
  " # fmt:off\n",
69
  " sys.path.append('./tdce-basic/model')\n",
 
71
  " sys.path.append('./tdce-basic/functions')\n",
72
  " sys.path.append('./tdce-basic/functions/data_extractor')\n",
73
  "\n",
74
+ " try:\n",
75
+ " # For online execution, in Google Colab\n",
76
+ " !pip install tensor-sensor\n",
77
+ " except:\n",
78
+ " pass\n",
79
+ " \n",
80
  " import tdce_model as tdce\n",
81
  " import material_fc_layer as mfl\n",
82
  " import employee_fc_layer as efl\n",
 
89
  " import result_display as rd\n",
90
  " import mini_plot as mp\n",
91
  " # fmt:on\n",
92
+ " \n",
 
 
 
 
93
  "\n",
94
  "else :\n",
95
  " # fmt:off\n",
functions/mini_plot.py CHANGED
@@ -3,8 +3,7 @@ import matplotlib.pyplot as plt
3
  import seaborn as sns
4
  import numpy as np
5
 
6
- sns.set_theme(style="whitegrid", font="Noto Sans",
7
- font_scale=1)
8
  this_graph_palette = sns.color_palette("husl", 4)
9
  sns.set_palette(this_graph_palette)
10
 
 
3
  import seaborn as sns
4
  import numpy as np
5
 
6
+ sns.set_theme(style="whitegrid", font_scale=1)
 
7
  this_graph_palette = sns.color_palette("husl", 4)
8
  sns.set_palette(this_graph_palette)
9