Skip to content

Commit

Permalink
after sphinx doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanGharibNezhad committed Nov 9, 2023
1 parent 6821113 commit 9394abb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
8 changes: 4 additions & 4 deletions TelescopeML/StatVisAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def regression_report(trained_model,

f.tight_layout()
target_name = ['Gravity', 'C_O_ratio', 'Metallicity', 'Temperature'][i]
plt.savefig(f'../outputs/figures/regression_report_{target_name}.pdf', format='pdf')
# plt.savefig(f'../outputs/figures/regression_report_{target_name}.pdf', format='pdf')
plt.show()

def filter_dataset_range(dataset, filter_params):
Expand Down Expand Up @@ -537,7 +537,7 @@ def boxplot_hist(data,
x_label = 'c_o_ratio'
if x_label == '[M/H]':
x_label = 'metallicity'
plt.savefig(f'../outputs/figures/boxplot_hist_{x_label}.pdf', format='pdf')
# plt.savefig(f'../outputs/figures/boxplot_hist_{x_label}.pdf', format='pdf')

plt.show()

Expand Down Expand Up @@ -1396,7 +1396,7 @@ def plot_filtered_dataframe(dataset, filter_bounds, feature_to_plot, title_label
dict_features = {'temperature': 'T$_{eff}$ [K]', 'gravity': 'log$g$', 'metallicity': '[M/H]', 'c_o_ratio': 'C/O'}
cbar.set_label(dict_features[feature_to_plot])

plt.savefig(os.path.join(__reference_data__, 'figures', feature_to_plot + "_trainin_examples.pdf"), dpi=500,
bbox_inches='tight')
# plt.savefig(os.path.join(__reference_data__, 'figures', feature_to_plot + "_trainin_examples.pdf"), dpi=500,
# bbox_inches='tight')

plt.show()
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
}


#nbsphinx_prolog = """
#{% set docname = env.doc2path(env.docname, base=None) %}
#.. note:: `Download full notebook here <https://github.com/EhsanGharibNezhad/TelescopeML/tree/master/docs/{{ docname }}>`_
#"""
###.. only:: html
nbsphinx_prolog = """
{% set docname = env.doc2path(env.docname, base=None) %}
.. note:: `Download full notebook here <https://github.com/EhsanGharibNezhad/TelescopeML/tree/master/docs/{{ docname }}>`_
"""
##.. only:: html
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ or simply...
======================

.. toctree::
:maxdepth: 1
:maxdepth: 2
:hidden:

Installation <installation>
Expand Down
6 changes: 0 additions & 6 deletions docs/knowledgebase.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
KnowledgeBase
===============

ML Concepts: Data processing and Model Training in CNN
-------------------------------------------------------
.. toctree::
:maxdepth: 2

Neural Network Arch <tutorials/Concepts_ML_knowledge_Train_CNN_Model.ipynb>
11 changes: 6 additions & 5 deletions docs/tutorials.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
Tutorials
==========


Exploring the Datasets
-----------------------
.. toctree::
:maxdepth: 3
:maxdepth: 1

Brown Dwarf Synthetic Dataset <tutorials/1__BrownDwarf_Data_Exploration.ipynb>





Predict Atmospheric Parameters
-------------------------------
.. toctree::
:maxdepth: 3
:maxdepth: 2

Deploy CNN Model to Predict Brown Dwarf Atmospheric Parameters <tutorials/2__Deploy_ML_Models_Predict_BrownDwarf_Parameters.ipynb>

Expand All @@ -24,14 +25,14 @@ Predict Atmospheric Parameters




Train a Regression ML Model
----------------------------
.. toctree::
:maxdepth: 3
:maxdepth: 2

Train a Regression ConvNN Model using the BOHB Tuned Hyperparameters <tutorials/3__Train_CNN_Model.ipynb>





0 comments on commit 9394abb

Please sign in to comment.