0% found this document useful (0 votes)
190 views3 pages

Discretization Problem Statement

Uploaded by

vinutha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
190 views3 pages

Discretization Problem Statement

Uploaded by

vinutha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DISCRETIZATION

Instructions:

Please share your answers filled inline in the word document. Submit Python code and R code
files wherever applicable.

Please ensure you update all the details:

Name: _________________________

Batch Id: _______________________


Topic: Data Pre-Processing

Problem Statement:
Everything will revolve around the data in Analytics world. Proper data will help you to
make useful predictions which improve your business. Sometimes the usage of original
data as it is does not help to have accurate solutions. It is needed to convert the data
from one form to another form to have better predictions. Explore on various
techniques to transform the data for better model performance. you can go through this
link:
[Link]
1) Convert the continuous data into discrete classes on iris dataset.
Prepare the dataset by performing the preprocessing techniques, to have the
data which improve model performance.

[Link] [Link] [Link] [Link] Species


5.1 3.5 1.4 0.2 setosa
4.9 3 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa

© 2013 - 2021 360DigiTMG. All Rights Reserved.


4.9 3.1 1.5 0.1 setosa

Hints:
For each assignment, the solution should be submitted in the below format
1. Work on each feature to create a data dictionary as displayed in the image displayed
below:

2. Hint: Refer to [Link], which is a public dataset.


3. Research and perform all possible steps for obtaining solution
4. All the codes (executable programs) should execute without errors
5. Code modularization should be followed
6. Each line of code should have comments explaining the logic and why you are using that
function

Grading Guidelines:

Note: 1. An Assignment submission is considered complete only when successful executable code(s),
and documentation explaining the applied solution and results are provided. Failing to submit either
of them will be considered an invalid submission and will not be considered for evaluation.

2. Assignments submitted after the deadline date will affect your grades.

Grading:

Ans Date     Ans Date


Correct On time A 100    
80% & above On time B 85 Correct Late
50% & above On time C 75 80% & above Late
50% & below On time D 65 50% & above Late
    E 55 50% & below  
Copied/No Submission   F 45    

 Grade A: (>= 90): When all assignments are submitted on or before the given deadline date

 Grade B: (>= 80 and < 90):

© 2013 - 2021 360DigiTMG. All Rights Reserved.


o When assignments are submitted on time but less than 80% of questions asked in
assignments are completed. (or)
o All assignments were submitted, however, after the given deadline

 Grade C: (>= 70 and < 80):


o When assignments are submitted on time but less than 50% of questions asked in
assignments are completed. (or)
o Less than 80% of questions asked in assignments are submitted after the deadline

 Grade D: (>= 60 and < 70): Assignments submitted after the Deadline and with 50% or less of
questions

 Grade E: (>= 50 and < 60):


o Less than 30% of questions asked in the assignments are submitted after the deadline
(OR)
o Less than 30% of questions asked in the assignments are submitted before deadline

 Grade F: (< 50): Copied submission or No submission

© 2013 - 2021 360DigiTMG. All Rights Reserved.

Common questions

Powered by AI

The grading guidelines categorize assignments into grades A to F based on submission timeliness and completeness. Submissions on time with at least 80% questions completed receive higher grades, reflecting an emphasis on punctuality and thoroughness. Students are penalized for late submissions or incomplete work, impacting grades significantly. These guidelines encourage timely, comprehensive work while penalizing procrastination and lack of thoroughness, motivating students to adhere to deadlines and fully engage with the assignment content .

Timely submission is directly tied to higher grades, with late submissions incurring penalties that can significantly affect overall performance. Strategies for meeting deadlines include setting personal milestones, using project management tools, prioritizing task lists, and maintaining a consistent work schedule. Starting assignments early and regularly reviewing progress reduces last-minute stress and improves quality and completeness, ensuring submissions meet assessment criteria .

Challenges in converting continuous data to discrete classes include loss of data granularity, possible introduction of bias, and the risk of arbitrary bin choice affecting models' predictive power. These can be mitigated by carefully determining bin number and width based on statistical analysis, using domain knowledge for meaningful categorization, and employing cross-validation to ensure that discretization does not negatively impact model performance. Sensitivity analysis on binning methods and continuous monitoring of model accuracy post-discretization are also crucial .

To ensure executable code is error-free, it's crucial to engage in thorough debugging, testing with diverse datasets, and employing version control systems to track changes. Code modularization can isolate sections, making it easier to identify and fix bugs. Comprehensive documentation involves explaining logic, function choice, and parameter usage, making it accessible for others to understand and maintain. Code comments should clarify purpose and function, preventing confusion and aiding educational value, thus complying with assignment requirements .

To convert continuous data to discrete classes effectively, first, analyze the data distribution to determine natural cutoff points or bins. Implement discretization techniques such as equal-width binning, equal-frequency binning, or clustering-based methods to assign data points to discrete categories. After discretizing, it's critical to validate these categories' predictive performance through cross-validation and model assessment. Furthermore, ensure the transformed data maintains underlying patterns to enhance model robustness and accuracy in predictions .

Creating a data dictionary improves understanding by providing detailed descriptions of each feature, including their data types, possible values, and meanings. This clarity aids in recognizing which preprocessing techniques are necessary, such as normalization or encoding, making it easier to handle data consistently and effectively. By documenting these aspects, it supports preprocessing by facilitating error detection, enabling better feature engineering, and improving the transparency and reproducibility of analyses .

Comments explaining code logic are necessary for clarity, allowing others to understand the coder's intention, facilitating collaboration, and ensuring ease in future code modifications or debugging. Without comments, code can become opaque and difficult to decipher, increasing the likelihood of errors either being introduced or remaining unresolved. This lack of transparency can hinder learning and assessment of the coder's understanding, and impede others from effectively using or improving the code .

Data discretization in preprocessing involves converting continuous data into discrete bins or intervals. This transformation can enhance model performance by reducing complexity, improving computational efficiency, and making data more interpretable. It allows classification algorithms to better capture non-linear relationships and patterns that might be missed in raw continuous data. Moreover, it can help to handle noise and outliers more effectively, leading to more stable and generalized predictive models .

Modularization enhances readability by breaking code into logically defined functions or modules, making each piece understandable in isolation. It supports maintainability by allowing individual modules to be updated or debugged without affecting other parts of the program, fostering a clear structure for implementing changes efficiently. This practice is essential in data preprocessing tasks where workflows can be complex and benefit from simplified, easy-to-navigate codebases .

Submitting copied work or failing to submit assignments results in an automatic grade of F. This severe consequence highlights the importance of academic integrity and discourages plagiarism, emphasizing the need for original work. It also serves to maintain academic standards and ensure fair assessment, preventing students from attempting to bypass genuine learning and effort .

You might also like