Prompt Title: Python report classification output

Created 1 year ago
Votes 0
Views 101 times
0

Prompt Detail:

Sure, here is the LaTeX code to generate the table from the provided classification report:

sql
\begin{table}[h] \centering \begin{tabular}{lcccc} \hline \textbf{Activity} & \textbf{Precision} & \textbf{Recall} & \textbf{F1-score} & \textbf{Support} \\ \hline LAYING & 0.01 & 1.00 & 0.01 & 3 \\ SITTING & 1.00 & 0.50 & 0.67 & 2 \\ WALKING & 0.91 & 0.58 & 0.71 & 463 \\ WALKING\_DOWNSTAIRS & 0.19 & 0.21 & 0.20 & 404 \\ WALKING\_UPSTAIRS & 0.00 & 0.00 & 0.00 & 417 \\ \hline \textbf{Accuracy} & \multicolumn{4}{c}{0.28 (1289)} \\ \textbf{Macro avg.} & 0.42 & 0.46 & 0.32 & 1289 \\ \textbf{Weighted avg.} & 0.39 & 0.28 & 0.32 & 1289 \\ \hline \end{tabular} \caption{Classification report for activity recognition.} \label{tab:activity-recognition} \end{table}

This code will generate a table with five columns (Activity, Precision, Recall, F1-score, and Support), and eight rows (one for each activity and three summary rows). You can adjust the column widths, alignment, and formatting as needed to match your document's style.

avatar
Arya.hafezi
Shared 1 prompt
Created 1 year ago

Leave a Comment