/// <summary> /// Returns the MucEntityConfusionMatrix for the given entity from the EntityStats dictionary and creates one if it doesn't exist /// </summary> /// <param name="entityFullName">Entity full hierarchical name</param> private MucEntityConfusionMatrix GetOrAddEntityStatObject(string entityFullName) { // Create if not exists in dictionary if (!EntityStats.ContainsKey(entityFullName)) { EntityStats[entityFullName] = new MucEntityConfusionMatrix { ModelName = entityFullName, ModelType = Constants.ModelNotFoundMessage }; } return(EntityStats[entityFullName]); }