class parser(object):
"""docstring for parser"""
def __init__(self, path):
self.encodeCSV = pd.read_csv(path, ',')
self.metrics = {
"train_rmse" : "RMSE_Tr",
"validation_rmse" : "RMSE_V",
"train_90_quantile" : "90QT_Tr",
"validation_90_quantile" : "90QT_V"
}
def generate_img(self):
fig = go.Figure({
'layout' : {'title': {'text': 'Combination Model'},
'xaxis': {'title': {'text': 'Models'}},
'yaxis': {'title': {'text': 'KPI Values'}}}
})
for metric in self.metrics:
fig.add_trace(go.Scatter(x=self.encodeCSV['names'],
y=self.encodeCSV[metric],
mode='lines+markers',
name=self.metrics[metric]))
return fig
I have generated a figure to analyze models' performance by plotly.
Now I have to highlight a model with best result and one straightforward way is just change the color of the xtick of the model (change the color of the circled xtick as following)

Is there a simple way to do that?


