#-----------------Linear---------------------------------------- import pandas as pd import matplotlib.pyplot as plt # Data data = { "Our model": [0.9800, 0.9901, 0.9722, 0.9900, 0.9815, 0.9822, 0.9800, 0.9770, 0.9913, 1.0000, 0.9800, 0.9700, 0.9701, 0.9957, 0.9930, 0.9711, 0.9700, 0.9800, 0.9895, 0.9832, 0.9701, 0.9789, 0.9829, 0.9921, 0.9745, 0.9827, 0.9689, 0.9711, 0.9824, 0.9823], "SRSSVM": [0.9667, 0.9854, 0.9722, 0.9644, 0.9756, 0.9772, 0.9744, 0.9656, 0.9600, 1.0000, 0.9633, 0.9789, 0.9687, 0.9906, 0.9721, 0.9711, 0.9678, 0.9667, 0.9816, 0.9711, 0.9689, 0.9654, 0.9633, 0.9744, 0.9656, 0.9756, 0.9722, 0.9656, 0.9902, 0.9867], "RSSVM": [0.9624, 0.9819, 0.9521, 0.9654, 0.9684, 0.9528, 0.9911, 0.9745, 1.0000, 0.9816, 0.9622, 0.9892, 0.9533, 0.9825, 0.9813, 0.9711, 0.9662, 0.9614, 0.9731, 0.9516, 0.9623, 0.9741, 0.9654, 0.9705, 0.9689, 0.9832, 0.9678, 0.9596, 0.9745, 0.9917] } # Create a DataFrame df = pd.DataFrame(data) # Plotting plt.figure(figsize=(12, 6)) plt.plot(df["Our model"], label="Our model", marker='o', linestyle='-', color='blue', linewidth=2.5) plt.plot(df["SRSSVM"], label="SRSSVM", marker='s', linestyle='--', color='green', linewidth=2.5) plt.plot(df["RSSVM"], label="RSSVM", marker='^', linestyle='-.', color='red', linewidth=2.5) # Add labels and title plt.title("Comparison plot of accuracy for linear kernel", fontsize=16, fontweight='bold') plt.xlabel("Sample", fontsize=16) plt.ylabel("Accuracy", fontsize=16) plt.legend(loc="upper left", fontsize=16) #plt.grid(True, linestyle='--', alpha=0.6) # Show the plot plt.tight_layout() plt.show() #-----------------Polynomial---------------------------------------- import pandas as pd import matplotlib.pyplot as plt # Data data = { "Our model": [0.9867, 0.9687, 0.9716, 0.9889, 0.9722, 0.9901, 0.9867, 0.9917, 0.9814, 0.9867, 0.9789, 0.9861, 0.9723, 0.9767, 0.9856, 0.9744, 0.9833, 0.9779, 0.9900, 1.0000, 0.9896, 0.9911, 0.9789, 0.9619, 0.9847, 0.9763, 0.9711, 0.9856, 1.0000, 0.9956], "SRSSVM": [0.9721, 0.9601, 0.9944, 0.9623, 0.9618, 0.9779, 0.9704, 0.9816, 0.9715, 0.9837, 0.9653, 0.9791, 0.9533, 0.9679, 0.9639, 0.9705, 0.9874, 0.9587, 0.9738, 0.9912, 0.9867, 0.9951, 0.9733, 0.9607, 0.9714, 0.9810, 0.9591, 0.9698, 0.9909, 0.9710], "RSSVM": [0.9687, 0.9597, 0.9689, 0.9784, 0.9711, 0.9715, 0.9694, 0.9761, 0.9691, 0.9748, 0.9607, 0.9941, 0.9564, 0.9811, 0.9521, 0.9559, 0.9694, 0.9456, 0.9714, 0.9881, 0.9680, 1.0000, 0.9457, 0.9753, 0.9539, 0.9721, 0.9740, 0.9640, 0.9835, 0.9627] } # Create a DataFrame df = pd.DataFrame(data) # Plotting plt.figure(figsize=(12, 6)) plt.plot(df["Our model"], label="Our model", marker='o', linestyle='-', color='blue', linewidth=2.5) plt.plot(df["SRSSVM"], label="SRSSVM", marker='s', linestyle='--', color='green', linewidth=2.5) plt.plot(df["RSSVM"], label="RSSVM", marker='^', linestyle='-.', color='red', linewidth=2.5) # Add labels and title plt.title("Comparison plot of accuracy for polynomial kernel", fontsize=16, fontweight='bold') plt.xlabel("Sample", fontsize=16) plt.ylabel("Accuracy", fontsize=16) plt.legend(loc="lower left", fontsize=16) #plt.grid(True, linestyle='--', alpha=0.6) # Show the plot plt.tight_layout() plt.show() #-----------------RBF---------------------------------------- import pandas as pd import matplotlib.pyplot as plt # Data data = { "Our model": [0.9989, 0.9899, 0.9978, 0.9878, 0.9901, 0.9967, 0.9933, 0.9890, 0.9911, 1.0000, 0.9912, 0.9933, 0.9870, 0.9900, 0.9991, 0.9944, 0.9911, 0.9967, 0.9933, 0.9871, 0.9906, 1.0000, 0.9922, 0.9944, 0.9890, 0.9711, 0.9819, 0.9975, 0.9956, 0.9867], "SRSSVM": [0.9831, 0.9724, 0.9819, 0.9901, 0.9895, 0.9920, 0.9808, 1.0000, 0.9927, 0.9884, 0.9843, 0.9769, 0.9727, 0.9872, 0.9887, 0.9802, 0.9733, 1.0000, 0.9801, 0.9934, 0.9819, 0.9849, 0.9890, 0.9793, 0.9709, 0.9870, 0.9704, 0.9901, 0.9897, 0.9690], "RSSVM": [0.9700, 0.9800, 0.9759, 0.9924, 0.9813, 0.9825, 0.9746, 0.9895, 1.0000, 0.9749, 0.9778, 0.9879, 0.9700, 0.9841, 0.9927, 0.9753, 0.9689, 0.9769, 0.9657, 0.9802, 0.9735, 0.9878, 1.0000, 0.9710, 0.9841, 0.9817, 0.9631, 0.9876, 0.9861, 0.9673] } # Create a DataFrame df = pd.DataFrame(data) # Plotting plt.figure(figsize=(12, 6)) plt.plot(df["Our model"], label="Our model", marker='o', linestyle='-', color='blue', linewidth=2.5) plt.plot(df["SRSSVM"], label="SRSSVM", marker='s', linestyle='--', color='green', linewidth=2.5) plt.plot(df["RSSVM"], label="RSSVM", marker='^', linestyle='-.', color='red', linewidth=2.5) # Add labels and title plt.title("Comparison plot of accuracy for RBF kernel", fontsize=16, fontweight='bold') plt.xlabel("Sample", fontsize=16) plt.ylabel("Accuracy", fontsize=16) plt.legend(loc="lower left", fontsize=16) #plt.grid(True, linestyle='--', alpha=0.6) # Show the plot plt.tight_layout() plt.show()
An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in on line 0. in /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/ErrorHandler.php(135): yii\web\ErrorHandler->renderException()
#3 [internal function]: yii\base\ErrorHandler->handleException()
#4 {main}
Previous exception:
yii\web\HeadersAlreadySentException: Headers already sent in on line 0. in /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/Application.php(656): yii\web\Response->send()
#2 /var/www/html/prof-homepages/vendor/faravaghi/yii2-filemanager/models/Files.php(696): yii\base\Application->end()
#3 /var/www/html/prof-homepages/vendor/faravaghi/yii2-filemanager/controllers/FilesController.php(484): faravaghi\filemanager\models\Files->getFile()
#4 [internal function]: faravaghi\filemanager\controllers\FilesController->actionGetFile()
#5 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#6 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams()
#7 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction()
#8 /var/www/html/prof-homepages/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction()
#9 /var/www/html/prof-homepages/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest()
#10 /var/www/html/prof-homepages/backend/web/index.php(16): yii\base\Application->run()
#11 {main}