Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TASK The starting point for your term paper will be the course book, the contents of which will serve as the basis for an in
TASK
The starting point for your term paper will be the course book, the contents of which will serve as the basis for an
indepth examination of one of the following questions. You are expected to research and cite from sources
corresponding to your chosen topic.
Description of the Task
You get A training datasets and B one test dataset, as well as C datasets for ideal functions. All data
respectively consists of ypairs of values.
Structure of all CSVfiles provided:
Your task is to write a Pythonprogram that uses training data to choose the four ideal functions which are the
best fit out of the fifty provided C
i Afterwards, the program must use the test data provided B to determine for each and every
pair of values whether or not they can be assigned to the four chosen ideal functions; if so the
program also needs to execute the mapping and save it together with the deviation at hand
ii All data must be visualized logically
iii Where possible, create compile suitable unittest
The criterion for choosing the ideal functions for the training function is how they minimize the sum of all
deviations squared LeastSquare
The criterion for mapping the individual test case to the four ideal functions is that the existing maximum
deviation of the calculated regression does not exceed the largest deviation between training dataset and
the ideal function C chosen for it by more than factor sqrt
In order to give proof of your skills in Python related to this course, you need to adhere to certain criteria when
solving the exercise; these criteria are subsequently described under 'Details. Details
You are given four training datasets in the form of csvfiles. Your Python program needs to be able to
independently compile a SQLite database file ideally via sqlalchemy and load the training data into a single five
column spreadsheet table in the file. Its first column depicts the values of all functions. Table at the end of
this subsection, shows you which structure your table is expected to have. The fifty ideal functions, which are also
provided via a CSVfile, must be loaded into another table. Likewise, the first column depicts the xvalues,
meaning there will be columns overall. Table at end of this subsection, schematically describes what
structure is expected.
After the training data and the ideal functions have been loaded into the database, the test data B must be
loaded linebyline from another CSVfile and if it complies with the compiling criterion matched to one of the
four functions chosen under i subsection above Afterwards, the results need to be saved into another four
columntable in the SQLite database. In accordance with table at end of this subsection, this table contains four
columns with and values as well as the corresponding chosen ideal function and the related deviation.
Finally, the training data, the test data, the chosen ideal functions as well as the corresponding assigned datasets
are visualized under an appropriately chosen representation of the deviation.
Please create a Pythonprogram which also fulfills the following criteria:
Its design is sensibly objectoriented
It includes at least one inheritance
It includes standard und userdefined exception handlings
For logical reasons, it makes use of Pandas' packages as well as data visualization via Bokeh, sqlalchemy,
as well as others
Write unittests for all useful elements
Your code needs to be documented in its entirety and also include Documentation Strings, known as
"docstrings
Table : The training data's database table: Table : The ideal functions' database table:
The database table of the testdata, with mapping and ydeviation
Additional Task
Assume that your successfully created project is on the Version Control System Git and has a Branch called
develop. On this Branch, all operations of the developer team are combined.
Write the Gitcommands necessary to clone the branch and? develop on your local PC Imagine that you have
added a new function. Write all necessary Gitcommands to introduce this project to the team's develop Branch.
Please note: You need the commands for commit, push. Afterwards, you would make
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started