mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-05 22:53:07 +00:00
Added heatmaps of netDegree vs failureRate on Missing Samples
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
This commit is contained in:
parent
1dae18a022
commit
ebb41a84d1
@ -1111,7 +1111,28 @@ class Visualizor:
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.plotHeatMapData(conf)
|
self.plotHeatMapData(conf)
|
||||||
|
|
||||||
|
# x -> network degree, y -> failure rate, weights -> no of missing samples
|
||||||
|
def plotNWDegVsFailureRateOnMissingSamples(self):
|
||||||
|
x = [result.shape.netDegree for result in self.results]
|
||||||
|
y = [result.shape.failureRate for result in self.results]
|
||||||
|
weights = [result.missingVector[-1] for result in self.results]
|
||||||
|
|
||||||
|
if len(set(x)) * len(set(y)) < 2: return # Not enough unique params for heatmap
|
||||||
|
|
||||||
|
conf = {
|
||||||
|
'x': x,
|
||||||
|
'y': y,
|
||||||
|
'weights': weights,
|
||||||
|
'xlabel': 'Net Degree',
|
||||||
|
'ylabel': 'Failure Rate (%)',
|
||||||
|
'title': 'Net Degree vs Failure Rate (%) on Missing Samples',
|
||||||
|
'path': 'NWDegVsFailureRateOnMissingSamples.png'
|
||||||
|
}
|
||||||
|
|
||||||
|
self.plotHeatMapData(conf)
|
||||||
|
|
||||||
def plotAllHeatMaps(self):
|
def plotAllHeatMaps(self):
|
||||||
self.plotNWDegVsNodeOnRuntime()
|
self.plotNWDegVsNodeOnRuntime()
|
||||||
self.plotNWDegVsMalNodeOnMissingSamples()
|
self.plotNWDegVsMalNodeOnMissingSamples()
|
||||||
|
self.plotNWDegVsFailureRateOnMissingSamples()
|
||||||
Loading…
x
Reference in New Issue
Block a user