Write A Python Program That Uses Training Data To ChooseThe Four Ideal Functions Which Are The Best Fit Out Of The FiftyProvided
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
1. TASK The Starting Point For Your Term Paper Will Be TheCourse Book, The Contents Of Which Will Serve As The Basis For AnIn-Depth Examination Of One Of The Following Questions. You AreExpected To Research And Cite From Sources Corresponding To YourChosen Topic.
1.1 Description Of The Task
You Get (A) 4 Training Datasets And
(B) One Test Dataset, As Well As
(C) Datasets For 50 Ideal Functions. All Data RespectivelyConsists Of X-Y-Pairs Of Values. Structure Of All CSV-FilesProvided: X Y X1 Y1 ... ... Xn Yn Your Task Is To Write APython-Program That Uses Training Data To Choose The Four IdealFunctions 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 X-Ypair Of Values Whether Or NotThey Can Be Assigned To The Four Chosen Ideal Functions**; If So,The Program Also Needs To Execute The Mapping And Save It TogetherWith The Deviation At Hand
Ii) All Data Must Be Visualized Logically
Iii) Where Possible, Create/ Compile Suitable Unit-Test * TheCriterion For Choosing The Ideal Functions For The TrainingFunction Is How They Minimize The Sum Of All Ydeviations Squared(Least-Square) **
The Criterion For Mapping The Individual Test Case To The FourIdeal Functions Is That The Existing Maximum Deviation Of TheCalculated Regression Does Not Exceed The Largest Deviation BetweenTraining Dataset (A) And The Ideal Function
(C) Chosen For It By More Than Factor Sqrt(2) In Order To GiveProof Of Your Skills In Python Related To This Course, You Need ToAdhere To Certain Criteria When Solving The Exercise; TheseCriteria Are Subsequently Described Under ‘Details.
You Are Given Four Training Datasets In The Form Of Csv-Files.Your Python Program Needs To Be Able To Independently Compile ASQLite Database (File) Ideally Via Sqlalchemy And Load The TrainingData Into A Single Fivecolumn Spreadsheet / Table In The File. ItsFirst Column Depicts The X-Values Of All Functions. Table 1, At TheEnd Of This Subsection, Shows You Which Structure Your Table IsExpected To Have. The Fifty Ideal Functions, Which Are AlsoProvided Via A CSV-File, Must Be Loaded Into Another Table.Likewise, The First Column Depicts The X-Values, Meaning There WillBe 51 Columns Overall. Table 2, At End Of This Subsection,Schematically Describes What Structure Is Expected.
After The Training Data And The Ideal Functions Have Been LoadedInto The Database, The Test Data (B) Must Be Loaded Line-By-LineFrom Another CSV-File And – If It Complies With The CompilingCriterion – Matched To One Of The Four Functions Chosen Under I(Subsection Above). Afterwards, The Results Need To Be Saved IntoAnother Fourcolumn-Table In The SQLite Database. In Accordance WithTable 3 At End Of This Subsection, This Table Contains Four ColumnsWith X- And Y-Values As Well As The Corresponding Chosen IdealFunction And The Related Deviation.
Finally, The Training Data, The Test Data, The Chosen IdealFunctions As Well As The Corresponding / Assigned Datasets AreVisualized Under An Appropriately Chosen Representation Of TheDeviation.
Write A Python Program That Uses Training Data To Choose The Four Ideal Functions Which Are The Best Fit Out Of The Fift
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am