{"id":141,"date":"2019-12-29T13:44:34","date_gmt":"2019-12-29T13:44:34","guid":{"rendered":"http:\/\/www.keithdillon.com\/?p=141"},"modified":"2023-05-15T03:50:32","modified_gmt":"2023-05-15T03:50:32","slug":"quadratic-programming-with-keras","status":"publish","type":"post","link":"https:\/\/www.keithdillon.com\/index.php\/2019\/12\/29\/quadratic-programming-with-keras\/","title":{"rendered":"Quadratic Programming with Keras"},"content":{"rendered":"\r\n<p>This note describes how to implement and solve a quadratic programming optimization problem using a shallow neural network in Keras. A single linear layer is used with a custom one-sided loss to impose the inequality constraints. A custom kernel regularizer is used to impose the optimization objective, yielding a form of penalty method. This provides a useful exercise in augmenting the loss, metrics, and callbacks used in Keras. This also potentially allows the exploitation of the back-end implementations of Keras and Tensorflow on GPU\u2019s and distributed storage. We demonstrate the method for large-scale computational image reconstruction with compressed sensing simulations.<\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.keithdillon.com\/papers_preprints\/Quadratic Programming with Keras.pdf\">www.keithdillon.com\/papers_preprints\/Quadratic Programming with Keras.pdf<\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>This note describes how to implement and solve a quadratic programming optimization problem using a shallow neural network in Keras. A single linear layer is used with a custom one-sided loss to impose the inequality constraints. A custom kernel regularizer<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":2,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.keithdillon.com\/index.php\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}