y = dict() y[0] = [] y[1] = [] for setname in (ytrain, yval, ytest):…
Jump to turn (7)
- 1y = dict() y[0] = [] y[1] = [] for setname in (ytrain, yval, ytest): y[0].append
- 24 totaltrain = y[0][0] + y[1][0] 5 totalval = y[0][1] + y[1][1] ----> 6 totaltes
- 3TypeError: object of type 'zip' has no len()
- 4how export tex file as pdf
- 5go to this page: https://www.kaggle.com/code/ruslankl/brain-tumor-detection-v1-0
- 6give lengthy
- 7give related work for the same
- User
y = dict() y[0] = [] y[1] = [] for set_name in (y_train, y_val, y_test): y[0].append(np.sum(set_name == 0)) y[1].append(np.sum(set_name == 1))
trace0 = go.Bar( x=['Train Set', 'Validation Set', 'Test Set'], y=y[0], name='No', marker=dict(color='#33cc33'), opacity=0.7 ) trace1 = go.Bar( x=['Train Set', 'Validation Set', 'Test Set'], y=y[1], name='Yes', marker=dict(color='#ff3300'), opacity=0.7 ) data = [trace0, trace1] layout = go.Layout( title='Count of classes in each set', xaxis={'title': 'Set'}, yaxis={'title': 'Count'} ) fig = go.Figure(data, layout) iplot(fig)
rewrite this to plot a pie chart
- Assistant