How to compare original and clustered profiles in the latest version? #728
Replies: 2 comments 3 replies
|
Die neueste version lagert das clustering an ein eigenes package aus, damit flixopt besser maintanbar ist. (https://tsam-xarray.readthedocs.io/en/latest/) Bitte gib mir ein miniales codebeispiel as <7.0.0. Ich übersetze es dir in 7.0.0 |
|
In 7.x, clustering delegates to tsam_xarray, and the original vs clustered data lives on import xarray as xr
agg = fs_clustered.clustering.aggregation_result
(
xr.Dataset({'original': agg.original, 'clustered': agg.reconstructed})
.to_dataarray(dim='profile')
.plotly.line(x='time', color='profile', facet_row='variable')
.update_yaxes(matches=None) # variables have different scales
)Column names: A couple of notes:
Coming soon (PR #734)The (
fs_clustered.clustering.compare() # all variables; subset via .sel(variable=...)
.to_dataarray(dim='profile')
.plotly.line(x='time', color='profile', facet_row='variable')
.update_yaxes(matches=None)
)We kept plotting in your hands (rather than re-adding a |


Uh oh!
There was an error while loading. Please reload this page.
Hallo! In der älteren Version von Clustering gab es eine Funktion, um die originalen Profile mit den Profilen nach dem Clustering zu vergleichen.(fs_clustered.clustering.plot.compare()) Diese wurde nun entfernt. Wie lässt sich diese Funktion in der neuesten Version umsetzen? Könnten Sie bitte ein Beispiel für Fall 1 geben (d. h. vor der Serialisierung clustering.aggregation_result verwenden)?
All reactions