def custom_transform(data):     """     Transform the `spiral.csv` data such that it can be more easily classified.     To pass test_custom_transform_hard, your transformation should create at     most three features and should allow a LogisticRegression model to achieve     at least 90% accuracy.     You can use free_response.q2.visualize_spiral() to visualize the spiral     as we give it to you, and free_response.q2.visualize_transform() to     visualize the 3D data transformation you implem

icon
Related questions
icon
Concept explainers
Question

def custom_transform(data):
    """
    Transform the `spiral.csv` data such that it can be more easily classified.

    To pass test_custom_transform_hard, your transformation should create at
    most three features and should allow a LogisticRegression model to achieve
    at least 90% accuracy.

    You can use free_response.q2.visualize_spiral() to visualize the spiral
    as we give it to you, and free_response.q2.visualize_transform() to
    visualize the 3D data transformation you implem

10
5-
-5-
-10-
-10
-5
O
л.
5
10
Transcribed Image Text:10 5- -5- -10- -10 -5 O л. 5 10
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, ai-and-machine-learning and related others by exploring similar questions and additional content below.
Similar questions