{"title":"关于使用scipy.optimize模块拟合模型的简短课程","authors":"A. Rokem","doi":"10.21105/JOSE.00016","DOIUrl":null,"url":null,"abstract":"Fitting models and testing the match of the models to the measured data is a fundamental activity in many fields of science. This short (approximately 3-hour) course (available at: https://github.com/arokem/scipy-optimize) aims to teach participants to use the Scipy library’s optimize module to fit models to data (Jones et al. 2001). Using data from a psychology experiment (Rokem and Landau 2016) as an example, the course motivates the use of explicit mathematical models to explain and predict data and compares linear models and non-linear models. The core of the lesson focuses on fitting a curve with the curve_fit function. The course also introduces the idea of model comparison with cross-validation for evaluation and selection between non-nested non-linear models.","PeriodicalId":75094,"journal":{"name":"The Journal of open source education","volume":" ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2018-07-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"A short course about fitting models with the scipy.optimize module\",\"authors\":\"A. Rokem\",\"doi\":\"10.21105/JOSE.00016\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Fitting models and testing the match of the models to the measured data is a fundamental activity in many fields of science. This short (approximately 3-hour) course (available at: https://github.com/arokem/scipy-optimize) aims to teach participants to use the Scipy library’s optimize module to fit models to data (Jones et al. 2001). Using data from a psychology experiment (Rokem and Landau 2016) as an example, the course motivates the use of explicit mathematical models to explain and predict data and compares linear models and non-linear models. The core of the lesson focuses on fitting a curve with the curve_fit function. The course also introduces the idea of model comparison with cross-validation for evaluation and selection between non-nested non-linear models.\",\"PeriodicalId\":75094,\"journal\":{\"name\":\"The Journal of open source education\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-07-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"The Journal of open source education\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.21105/JOSE.00016\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"The Journal of open source education","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.21105/JOSE.00016","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A short course about fitting models with the scipy.optimize module
Fitting models and testing the match of the models to the measured data is a fundamental activity in many fields of science. This short (approximately 3-hour) course (available at: https://github.com/arokem/scipy-optimize) aims to teach participants to use the Scipy library’s optimize module to fit models to data (Jones et al. 2001). Using data from a psychology experiment (Rokem and Landau 2016) as an example, the course motivates the use of explicit mathematical models to explain and predict data and compares linear models and non-linear models. The core of the lesson focuses on fitting a curve with the curve_fit function. The course also introduces the idea of model comparison with cross-validation for evaluation and selection between non-nested non-linear models.