Mercurial > repos > goeckslab > pycaret_compare
comparison base_model_trainer.py @ 3:02f7746e7772 draft default tip
planemo upload for repository https://github.com/goeckslab/Galaxy-Pycaret commit ff6d674ecc83db933153b797ef4dbde17f07b10e
author | goeckslab |
---|---|
date | Wed, 01 Jan 2025 03:19:40 +0000 |
parents | 915447b14520 |
children |
comparison
equal
deleted
inserted
replaced
2:009b18a75dc3 | 3:02f7746e7772 |
---|---|
261 Setup & Best Model</div> | 261 Setup & Best Model</div> |
262 <div class="tab" onclick="openTab(event, 'plots')"> | 262 <div class="tab" onclick="openTab(event, 'plots')"> |
263 Best Model Plots</div> | 263 Best Model Plots</div> |
264 <div class="tab" onclick="openTab(event, 'feature')"> | 264 <div class="tab" onclick="openTab(event, 'feature')"> |
265 Feature Importance</div> | 265 Feature Importance</div> |
266 <div class="tab" onclick="openTab(event, 'explainer')"> | 266 """ |
267 Explainer | 267 if self.plots_explainer_html: |
268 </div> | 268 html_content += """ |
269 "<div class="tab" onclick="openTab(event, 'explainer')">" | |
270 Explainer Plots</div> | |
271 """ | |
272 html_content += f""" | |
269 </div> | 273 </div> |
270 <div id="summary" class="tab-content"> | 274 <div id="summary" class="tab-content"> |
271 <h2>Setup Parameters</h2> | 275 <h2>Setup Parameters</h2> |
272 <table> | 276 <table> |
273 <tr><th>Parameter</th><th>Value</th></tr> | 277 <tr><th>Parameter</th><th>Value</th></tr> |
297 {plots_html} | 301 {plots_html} |
298 </div> | 302 </div> |
299 <div id="feature" class="tab-content"> | 303 <div id="feature" class="tab-content"> |
300 {feature_importance_html} | 304 {feature_importance_html} |
301 </div> | 305 </div> |
306 """ | |
307 if self.plots_explainer_html: | |
308 html_content += f""" | |
302 <div id="explainer" class="tab-content"> | 309 <div id="explainer" class="tab-content"> |
303 {self.plots_explainer_html} | 310 {self.plots_explainer_html} |
304 {tree_plots} | 311 {tree_plots} |
305 </div> | 312 </div> |
306 {get_html_closing()} | 313 {get_html_closing()} |
307 """ | 314 """ |
308 | 315 else: |
316 html_content += f""" | |
317 {get_html_closing()} | |
318 """ | |
309 with open(os.path.join( | 319 with open(os.path.join( |
310 self.output_dir, "comparison_result.html"), "w") as file: | 320 self.output_dir, "comparison_result.html"), "w") as file: |
311 file.write(html_content) | 321 file.write(html_content) |
312 | 322 |
313 def save_dashboard(self): | 323 def save_dashboard(self): |