Complete the code to print a message about AI fairness.
print("AI systems should be [1] to all users.")
The correct word is fair because AI systems must treat all users equally without bias.
Complete the code to check if AI data is free from {{BLANK_1}}.
if data_contains_bias([1]): print("Warning: Data has bias!")
The function checks if the dataset contains bias, which can affect AI fairness.
Fix the error in the code to avoid bias in AI decisions.
def make_decision(input_data): if input_data['age'] [1] 18: return "Reject" else: return "Accept"
Using < 18 means rejecting those under 18, which is a clear bias based on age.
Fill both blanks to create a function that checks for bias and returns a fair result.
def check_fairness(data): bias_found = data.get('[1]', False) if bias_found [2] True: return "Bias detected" return "Fair"
The key to check is 'bias' in data, and the condition should test if bias is equal to True.
Fill all three blanks to create a dictionary comprehension that filters biased entries.
filtered_data = [1]: [2] for [1] in data if data[[1]] [3] False
The comprehension uses key for iteration, data[key] for values, and filters where bias is not equal to False.