Skip to content
Snippets Groups Projects
Commit 44ee4de2 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Encoding in output

parent 0c3b0897
No related branches found
No related tags found
No related merge requests found
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![Build Status](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/develop/pipeline.svg)](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/develop/pipeline.svg) [![Build Status](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/develop/pipeline.svg)](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/develop/pipeline.svg)
[![Coverage Report](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/master/coverage.svg)](https://gitlab.lis-lab.fr/dev/scikit-multimodallearn/badges/master) [![Coverage Report](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/master/coverage.svg)](https://gitlab.lis-lab.fr/baptiste.bauvin/summit/badges/master)
# Supervised MultiModal Integration Tool's Readme # Supervised MultiModal Integration Tool's Readme
This project aims to be an easy-to-use solution to run a prior benchmark on a dataset and evaluate mono- & multi-view algorithms capacity to classify it correctly. This project aims to be an easy-to-use solution to run a prior benchmark on a dataset and evaluate mono- & multi-view algorithms capacity to classify it correctly.
......
...@@ -225,7 +225,7 @@ def save_results(string_analysis, output_file_name, full_labels_pred, ...@@ -225,7 +225,7 @@ def save_results(string_analysis, output_file_name, full_labels_pred,
y_train_pred, y_train_pred,
y_train, images_analysis, y_test, confusion_matrix): # pragma: no cover y_train, images_analysis, y_test, confusion_matrix): # pragma: no cover
logging.info(string_analysis) logging.info(string_analysis)
output_text_file = open(output_file_name + 'summary.txt', 'w') output_text_file = open(output_file_name + 'summary.txt', 'w', encoding="utf-8")
output_text_file.write(string_analysis) output_text_file.write(string_analysis)
output_text_file.close() output_text_file.close()
np.savetxt(output_file_name+"confusion_matrix.csv", confusion_matrix, np.savetxt(output_file_name+"confusion_matrix.csv", confusion_matrix,
......
...@@ -102,7 +102,7 @@ def save_results(string_analysis, images_analysis, output_file_name, ...@@ -102,7 +102,7 @@ def save_results(string_analysis, images_analysis, output_file_name,
""" """
logging.info(string_analysis) logging.info(string_analysis)
secure_file_path(output_file_name) secure_file_path(output_file_name)
output_text_file = open(output_file_name + 'summary.txt', 'w') output_text_file = open(output_file_name + 'summary.txt', 'w', encoding="utf-8")
output_text_file.write(string_analysis) output_text_file.write(string_analysis)
output_text_file.close() output_text_file.close()
np.savetxt(output_file_name+"confusion_matrix.csv", confusion_matrix, np.savetxt(output_file_name+"confusion_matrix.csv", confusion_matrix,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment