Skip to main content

All Questions

Tagged with
0 votes
0 answers
19 views

How do I display predicted class labels on the leaf nodes of an XGBoost decision tree?

I am working with an XGBoost classifier to predict types of exploitation. My dataset includes various features, and I have successfully trained a model. However, when I visualize the decision tree, ...
tswift1998's user avatar
0 votes
0 answers
18 views

Navigate to a different page after login streamlit

I am building a data analysis and visualization web app using streamlit with firebase authentication. The login is successfully but it has failed to switch to the main dashboard page. Here is the code....
coding beast's user avatar
0 votes
0 answers
7 views

PgyWalker UI is not Visible in Browser

from flask import Flask, request, render_template from flask_uploads import UploadSet, configure_uploads,ALL, DATA from werkzeug.utils import secure_filename import os import pandas as pd import ...
Anish Shakya's user avatar
1 vote
0 answers
21 views

How to render node-name next to node-point in a way that it has collision-avoidance in PyVis

Issue In many PyVis examples text is being ignored and just overlayed, e.g. node-names. Wanted I want to prevent that text is being overlayed. Screenshot: How it should look like In abstract terms: ...
Reinhard Schmidt's user avatar
-2 votes
0 answers
49 views

How to make colorful line legend?

I have this plot: Where: Orange vertical line is false positive of p-wave class Green vertical line is false positive of qrs-wave class Purple vertical line is false positive of t-wave class Red ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
33 views

plotly isosurface problem based on data size: it doesn't plot but also doesn't give an error message

I am a beginner in python and was playing around with data visualization for a task at my job. Simply, I need to visualize a cloud of 3D data points and I decided Isosurface function meets my ...
kurbaga_olmus_link's user avatar
0 votes
1 answer
31 views

Adding percentage annotations to a graph using python

Ting to add some percentage annotations to a population pyramid, but currently the percentages are duplicated, cannot, for the life of me figure out how to fix it. #creating a count of each male in ...
Leakie's user avatar
  • 1
0 votes
2 answers
36 views

Remove gap between two graphs with shared axis

Objective I want to generate a 'double ended' barchart, showing gained points (of some metric) vis-a-vis missed points, something like this: Result so far I managed to do this import altair as alt ...
dkapitan's user avatar
  • 919
0 votes
1 answer
30 views

How to set the width of a figure in Bokeh?

I can set a figures width by doing: fig.width = 1000 however this gives me a smaller figure if I have more then one yaxis, or if I have text in the yaxis, or if I have a legend on the left or the ...
ArvidSteen's user avatar
1 vote
0 answers
28 views

How do i import obj models in python and be able to view them in mesh form

Although i know i can do this already using libraries like vedo, what i want is to be able to view the individual vertices of the model (kind of like the edit mode in blender) and be able to assign ...
Arkos's user avatar
  • 11
0 votes
0 answers
34 views

Plot events as rectangles with start-end dates along x axis (rectangle width) and magnitude along y axis (rectangle height)

Consider a dummy data set of events df = pd.DataFrame(columns=['category', 'start','end','value','type'], data=[['A','2024-06-01','2024-06-10',0.5,'normal'],['B','2024-05-27','2024-06-16',.8,'normal'],...
ric's user avatar
  • 163
0 votes
3 answers
58 views

How to set matplotlib spacing when using xlim. Or is it possible to use margins() with xlim()?

Per default, matplotlib always adds whitespace between your first data points and the axis like you can see in the image: Default Plot with whitespace between data and axis. The following Code was ...
flx's user avatar
  • 3
0 votes
1 answer
53 views

How to create a plot in Matplotlib that looks like a swarmplot but with overlapping points?

I'm trying to create a (sort of) swarmplot - that it- should clearly show the shapes of the distributions but allow for quick plotting of tens of thousands of datapoints by overlapping the dot ...
ufghd34's user avatar
  • 151
0 votes
0 answers
84 views

AttributeError: 'Conv2D' object has no attribute 'output_shape' for visualising CNN

I'm trying to use Keras (visualkeras) lib for visualizing my CNN model but I keep getting the errors. Here's the model: import tensorflow as tf from tensorflow.keras.models import Sequential from ...
james's user avatar
  • 177
2 votes
1 answer
33 views

Altair not displaying data when changing option on dropdown selector

I want to display counts of a certain feature according to the year with an Altair Chart and I want to do it by selecting year as an option of a dropdown selector. It works fine with the 'None' option ...
LostSmoksby's user avatar

15 30 50 per page
1
2 3 4 5
272