The functionality for FairTensor seems to be primarily to store labels together with the fairness-confusion tensor. This functionality already exists in https://github.com/JuliaArrays/AxisArrays.jl and I think it would make sense to define FairTensor as an AxisArray.
Also, let's discuss why FairTensor needs to be mutable - there are potential performance penalty issues with the current design.
The functionality for FairTensor seems to be primarily to store labels together with the fairness-confusion tensor. This functionality already exists in https://github.com/JuliaArrays/AxisArrays.jl and I think it would make sense to define FairTensor as an AxisArray.
Also, let's discuss why FairTensor needs to be mutable - there are potential performance penalty issues with the current design.