Skip to content

Commit

Permalink
Refer to predicted value from Counterfactual data
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gupta <[email protected]>
  • Loading branch information
gaugup committed Oct 30, 2023
1 parent c0e56ed commit a21327a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/counterfactuals/src/util/getOriginalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import {
ICounterfactualData,
IDataset,
ifEnableLargeData,
JointDataset
} from "@responsible-ai/core-ui";
import { localization } from "@responsible-ai/localization";
Expand All @@ -21,7 +20,7 @@ export function getOriginalData(
index
)
};
if (ifEnableLargeData(dataset) && counterfactualData) {
if (counterfactualData) {
const featureNames = counterfactualData.feature_names_including_target;
const dataPoint = counterfactualData.test_data[0][0];
featureNames.forEach((f, index) => {
Expand Down

0 comments on commit a21327a

Please sign in to comment.