diff --git a/docs/_static/basic.css b/docs/_static/basic.css index 603f6a8..bf18350 100644 --- a/docs/_static/basic.css +++ b/docs/_static/basic.css @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- basic theme. * - * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -757,6 +757,7 @@ span.pre { -ms-hyphens: none; -webkit-hyphens: none; hyphens: none; + white-space: nowrap; } div[class*="highlight-"] { diff --git a/docs/_static/doctools.js b/docs/_static/doctools.js index 8cbf1b1..e1bfd70 100644 --- a/docs/_static/doctools.js +++ b/docs/_static/doctools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for all documentation. * - * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -154,9 +154,7 @@ var Documentation = { this.fixFirefoxAnchorBug(); this.highlightSearchWords(); this.initIndexTable(); - if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) { - this.initOnKeyListeners(); - } + this.initOnKeyListeners(); }, /** @@ -264,6 +262,16 @@ var Documentation = { hideSearchWords : function() { $('#searchbox .highlight-link').fadeOut(300); $('span.highlighted').removeClass('highlighted'); + var url = new URL(window.location); + url.searchParams.delete('highlight'); + window.history.replaceState({}, '', url); + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar : function() { + $('input[name=q]').first().focus(); }, /** @@ -288,27 +296,54 @@ var Documentation = { }, initOnKeyListeners: function() { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + return; + $(document).keydown(function(event) { var activeElementType = document.activeElement.tagName; // don't navigate when in search box, textarea, dropdown or button if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' - && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey - && !event.shiftKey) { - switch (event.keyCode) { - case 37: // left - var prevHref = $('link[rel="prev"]').prop('href'); - if (prevHref) { - window.location.href = prevHref; - return false; - } - break; - case 39: // right - var nextHref = $('link[rel="next"]').prop('href'); - if (nextHref) { - window.location.href = nextHref; - return false; - } - break; + && activeElementType !== 'BUTTON') { + if (event.altKey || event.ctrlKey || event.metaKey) + return; + + if (!event.shiftKey) { + switch (event.key) { + case 'ArrowLeft': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var prevHref = $('link[rel="prev"]').prop('href'); + if (prevHref) { + window.location.href = prevHref; + return false; + } + break; + case 'ArrowRight': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var nextHref = $('link[rel="next"]').prop('href'); + if (nextHref) { + window.location.href = nextHref; + return false; + } + break; + case 'Escape': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.hideSearchWords(); + return false; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case '/': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.focusSearchBar(); + return false; } } }); diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index 2baeaa7..b3ece72 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '2.0.5', + VERSION: '2.1.0', LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', @@ -8,5 +8,7 @@ var DOCUMENTATION_OPTIONS = { LINK_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt', - NAVIGATION_WITH_KEYS: false + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, }; \ No newline at end of file diff --git a/docs/_static/language_data.js b/docs/_static/language_data.js index 863704b..ebe2f03 100644 --- a/docs/_static/language_data.js +++ b/docs/_static/language_data.js @@ -5,7 +5,7 @@ * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. * - * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/docs/_static/searchtools.js b/docs/_static/searchtools.js index 002e9c4..0a44e85 100644 --- a/docs/_static/searchtools.js +++ b/docs/_static/searchtools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for the full-text search. * - * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -172,10 +172,6 @@ var Search = { } // stem the word var word = stemmer.stemWord(tmp[i].toLowerCase()); - // prevent stemmer from cutting word smaller than two chars - if(word.length < 3 && tmp[i].length >= 3) { - word = tmp[i]; - } var toAppend; // select the correct list if (word[0] == '-') { @@ -276,7 +272,7 @@ var Search = { setTimeout(function() { displayNextItem(); }, 5); - } else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) { + } else if (DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY) { $.ajax({url: requestUrl, dataType: "text", complete: function(jqxhr, textstatus) { @@ -293,7 +289,7 @@ var Search = { }, 5); }}); } else { - // no source available, just display title + // just display title Search.output.append(listItem); setTimeout(function() { displayNextItem(); diff --git a/docs/about.html b/docs/about.html index 3a43be3..c646b9e 100644 --- a/docs/about.html +++ b/docs/about.html @@ -6,7 +6,7 @@ - About — pwlf 2.0.5 documentation + About — pwlf 2.1.0 documentation @@ -117,7 +117,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/examples.html b/docs/examples.html index 79a5bc0..b447d13 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -6,7 +6,7 @@ - Examples — pwlf 2.0.5 documentation + Examples — pwlf 2.1.0 documentation @@ -486,8 +486,8 @@

get the linear regression matrix
from sklearn.linear_model import ElasticNetCV
 # set up the elastic net
 en_model = ElasticNetCV(cv=5,
-                        l1_ratio=[.1, .5, .7, .9,
-                                  .95, .99, 1],
+                        l1_ratio=[.1, .5, .7, .9,
+                                  .95, .99, 1],
                         fit_intercept=False,
                         max_iter=1000000, n_jobs=-1)
 # fit the model using the elastic net
@@ -970,7 +970,7 @@ 

Quick search

©2020, Charles Jekel. | - Powered by
Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/genindex.html b/docs/genindex.html index d8bbfd0..72f8ea1 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -5,7 +5,7 @@ - Index — pwlf 2.0.5 documentation + Index — pwlf 2.1.0 documentation @@ -206,7 +206,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12
diff --git a/docs/how_it_works.html b/docs/how_it_works.html index ba7df19..17d4b3e 100644 --- a/docs/how_it_works.html +++ b/docs/how_it_works.html @@ -6,7 +6,7 @@ - How it works — pwlf 2.0.5 documentation + How it works — pwlf 2.1.0 documentation @@ -119,7 +119,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/index.html b/docs/index.html index 672d857..0ff5a72 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ - pwlf: piecewise linear fitting — pwlf 2.0.5 documentation + pwlf: piecewise linear fitting — pwlf 2.1.0 documentation @@ -145,7 +145,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/installation.html b/docs/installation.html index 0fd677b..6bb59c3 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -6,7 +6,7 @@ - Installation — pwlf 2.0.5 documentation + Installation — pwlf 2.1.0 documentation @@ -131,7 +131,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/license.html b/docs/license.html index 1be4405..34da1ea 100644 --- a/docs/license.html +++ b/docs/license.html @@ -6,7 +6,7 @@ - License — pwlf 2.0.5 documentation + License — pwlf 2.1.0 documentation @@ -116,7 +116,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/modules.html b/docs/modules.html index 29aaa12..391de9d 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -6,7 +6,7 @@ - pwlf — pwlf 2.0.5 documentation + pwlf — pwlf 2.1.0 documentation @@ -105,7 +105,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/pwlf.html b/docs/pwlf.html index 50cc2ea..68ca587 100644 --- a/docs/pwlf.html +++ b/docs/pwlf.html @@ -6,7 +6,7 @@ - pwlf package contents — pwlf 2.0.5 documentation + pwlf package contents — pwlf 2.1.0 documentation @@ -37,7 +37,7 @@

pwlf package contents

- +
@@ -54,7 +54,7 @@

pwlf package contentsclass pwlf.PiecewiseLinFit(x, y, disp_res=False, lapack_driver='gelsd', degree=1, weights=None)

Bases: object

Methods

-

+
@@ -66,7 +66,7 @@

pwlf package contents

- + @@ -90,7 +90,7 @@

pwlf package contents

- + @@ -178,8 +178,20 @@

pwlf package contents
-conlstsq(A)
+conlstsq(A, calc_slopes=True)

Perform a constrained least squares fit for A matrix.

+
+
Parameters
+
+
Andarray (2-D)

The regression matrix you want to fit in the linear system of +equations Ab=y.

+
+
calc_slopesboolean, optional

Whether to calculate slopes after performing a fit. Default is +calc_slopes=True.

+
+
+
+
@@ -581,8 +593,20 @@

pwlf package contents
-lstsq(A)
+lstsq(A, calc_slopes=True)

Perform the least squares fit for A matrix.

+
+
Parameters
+
+
Andarray (2-D)

The regression matrix you want to fit in the linear system of +equations Ab=y.

+
+
calc_slopesboolean, optional

Whether to calculate slopes after performing a fit. Default is +calc_slopes=True.

+
+
+
+

@@ -967,7 +991,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/requirements.html b/docs/requirements.html index e84e4b9..5c6976a 100644 --- a/docs/requirements.html +++ b/docs/requirements.html @@ -6,7 +6,7 @@ - Requirements — pwlf 2.0.5 documentation + Requirements — pwlf 2.1.0 documentation @@ -104,7 +104,7 @@

Quick search

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/docs/search.html b/docs/search.html index d7b16a1..e61ba02 100644 --- a/docs/search.html +++ b/docs/search.html @@ -5,7 +5,7 @@ - Search — pwlf 2.0.5 documentation + Search — pwlf 2.1.0 documentation @@ -118,7 +118,7 @@

Related Topics

©2020, Charles Jekel. | - Powered by Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 diff --git a/docs/searchindex.js b/docs/searchindex.js index ef77a20..63cb50e 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["about","examples","how_it_works","index","installation","license","modules","pwlf","requirements","stubs/pwlf.PiecewiseLinFit"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,sphinx:56},filenames:["about.rst","examples.rst","how_it_works.rst","index.rst","installation.rst","license.rst","modules.rst","pwlf.rst","requirements.rst","stubs/pwlf.PiecewiseLinFit.rst"],objects:{"pwlf.PiecewiseLinFit":[[9,1,1,"","__init__"],[7,1,1,"","assemble_regression_matrix"],[7,1,1,"","calc_slopes"],[7,1,1,"","conlstsq"],[7,1,1,"","fit"],[7,1,1,"","fit_force_points_opt"],[7,1,1,"","fit_guess"],[7,1,1,"","fit_with_breaks"],[7,1,1,"","fit_with_breaks_force_points"],[7,1,1,"","fit_with_breaks_opt"],[7,1,1,"","fitfast"],[7,1,1,"","lstsq"],[7,1,1,"","p_values"],[7,1,1,"","predict"],[7,1,1,"","prediction_variance"],[7,1,1,"","r_squared"],[7,1,1,"","standard_errors"],[7,1,1,"","use_custom_opt"]],pwlf:[[9,0,1,"","PiecewiseLinFit"]]},objnames:{"0":["py","class","Python class"],"1":["py","method","Python method"]},objtypes:{"0":"py:class","1":"py:method"},terms:{"0":[1,7,8,9],"00":1,"00000000e":1,"0001":7,"00086000e":1,"001":1,"00538634182565454":1,"00926700e":1,"00936330e":1,"01":1,"01254006e":1,"01980300e":1,"02":[1,7],"02039790e":1,"02132890e":1,"02345260e":1,"02580042e":1,"03":1,"03016230425747":1,"03581990e":1,"03872000e":1,"039":1,"046":1,"04787860e":1,"05":[1,7],"06":1,"07":7,"07655920e":1,"07961810e":1,"1":[1,7,8,9],"10":[1,7],"100":[1,7],"1000":1,"10000":1,"1000000":1,"11":[1,7],"111181494":1,"11688258e":1,"12":[1,7],"12089850e":1,"12121":1,"123":1,"12600000e":1,"13":[1,7],"14":[7,8],"14750770e":1,"15":7,"15706975e":1,"159":1,"16":[1,7],"162":1,"16270210e":1,"16388310e":1,"165":1,"16531753e":1,"166901856":1,"168954500":1,"16951050e":1,"17305210e":1,"17617000e":1,"1763191476":1,"18":1,"18679400e":1,"19":1,"19011260e":1,"1d":[0,7],"1e":[1,7],"2":[1,7,8,9],"20":7,"2004":2,"2009":7,"2011":7,"2017":5,"2018":7,"2019":0,"2020":5,"20351520e":1,"20605073e":1,"21390666e":1,"22":1,"22120350e":1,"22767939e":1,"242":1,"25615100e":1,"26063930e":1,"26413070e":1,"28":[1,7],"2818":7,"2821":7,"28642800e":1,"3":[1,7,8],"30":1,"30997400e":1,"31196948e":1,"31279040e":1,"31543400e":1,"34180360e":1,"34184100e":1,"34390200e":1,"34620080e":1,"34831790e":1,"3508513333073":1,"36687642e":1,"36931660e":1,"37038283e":1,"37279600e":1,"37442010e":1,"38":7,"38356810e":1,"39052750e":1,"397":1,"39709150e":1,"4":[1,7],"40":1,"40913":7,"41374060e":1,"41725010e":1,"41776550e":1,"41881288e":1,"42":[1,7],"421":1,"42172312e":1,"427":1,"42877590e":1,"434717232":7,"44":[1,7],"44519970e":1,"45343950e":1,"45437090e":1,"46404554":1,"48218236957122":1,"482311769":1,"48629710e":1,"49":7,"493":1,"49429370e":1,"5":[1,7],"50":[1,7],"50144640e":1,"50958760e":1,"5102742956827":1,"51085900e":1,"51858250e":1,"5306546317065":1,"53545600e":1,"537785803":1,"54628780e":1,"54941000e":1,"55253360e":1,"55374770e":1,"55892510e":1,"55907760e":1,"56706510e":1,"5772216545711":1,"58600000e":1,"59":1,"59461900e":1,"59556700e":1,"59627540e":1,"6":[1,7],"61442590e":1,"62618058e":1,"63321350e":1,"63404300e":1,"63539960e":1,"63739040e":1,"64433570e":1,"646":1,"65299640e":1,"65610200e":1,"66106800e":1,"68092100e":1,"69747505830914":1,"69801700e":1,"7":[1,7],"70363280e":1,"720785454735":1,"74104940e":1,"75":1,"76596300e":1,"77756110e":1,"78542550e":1,"79942720e":1,"8":[1,7,8],"80525800e":1,"81":[1,7],"81388400e":1,"82":1,"821":1,"82125120e":1,"82678000e":1,"84458400e":1,"85494500e":1,"873":1,"88450940e":1,"885":1,"89945177490653":1,"9":1,"91016100e":1,"92":[1,7],"926850298824217":1,"93753841":1,"94350340e":1,"949735350431857":1,"95":[1,7],"951561315686298":1,"953964059782599":1,"95549800e":1,"96":7,"9824424358344":1,"99":1,"break":[1,2,7,9],"case":[1,7],"class":[1,7,9],"default":[1,2,7,9],"do":[1,5,7],"float":[7,9],"function":[0,1,3,7,9],"import":[1,7,9],"int":[7,9],"new":[7,9],"public":0,"return":[1,7],"switch":1,"true":[1,9],"var":[7,9],"while":[1,7],A:[0,1,5,7],AND:5,AS:5,BE:5,BUT:5,FOR:5,For:[1,7,9],IN:5,IS:5,If:[1,4,7],In:[1,7],It:7,NO:5,NOT:5,No:7,OF:5,OR:5,One:1,Or:4,THE:5,TO:5,The:[1,5,7,9],There:7,These:[1,7],WITH:5,__future__:1,__init__:9,ab:1,about:[1,3],abov:5,absolut:1,accuraci:7,action:5,add:1,addition:7,advanc:7,after:[7,9],aggress:2,aiaa:7,algorithm:2,all:[0,1,5,7],allow:[7,9],alpha:7,also:[4,7],altern:[1,2],alwai:7,an:[1,5,7,9],anderson:7,ani:[5,7],appear:7,append:1,applic:1,ar:[1,2,7,9],arang:1,arbitrarili:1,argument:1,aris:5,around:[1,7],arrai:[1,7,9],array_lik:[7,9],assembl:[1,7],assemble_regression_matrix:[1,7],associ:[5,7,9],assum:[1,7,9],assumpt:7,atol:1,attribut:[7,9],attributeerror:7,author:[0,5],automat:[1,7],axi:1,b:7,backward:1,bad:3,base:[1,2,7],bayesian:1,bayesianoptim:1,becaus:7,been:[7,9],behind:7,believ:[1,7],benchmark:1,best:[2,3,7],beta:[1,7,9],beta_index:1,better:1,between:[1,7],bfg:7,blob:7,blog:1,bool:9,both:7,bound:[3,7],break_0:9,break_loc:1,break_n:9,breakpoint:[3,7,9],c:[4,5],c_n:9,calc_slop:[7,9],calcul:[1,7,9],call:[7,9],can:[1,4,7],candid:1,care:1,center:7,chang:[0,7],changelog:0,charg:5,charl:[0,5],check:2,choleski:1,choos:1,cite:0,cjekel:[0,4,7],claim:5,clone:4,cm:7,code:1,coef_:1,coeffici:[7,9],coefficient_of_determin:7,com:[0,4,7],commonli:7,compar:[1,7],complic:1,compromis:7,comput:1,concaten:1,conda:3,condit:[5,7],confid:7,conlstsq:7,connect:5,consid:7,constant:[3,9],constrain:7,constraint:[7,9],contain:7,content:[3,6],contin:7,continu:[0,1,7,9],continuouspiecewiselinearfit:7,contract:5,control:1,cook:7,copi:[1,5],copp:7,copyright:5,correct:1,correspond:[1,7,9],correspound:[7,9],cpickl:1,creat:1,current:7,custom:[3,7,9],cv:1,d:[7,9],damag:[5,7],data:[0,3,7,9],dataset:7,dc:7,de:1,deal:5,dec:7,decim:1,decomposit:1,decreas:7,def:1,defin:[1,2,7],degre:[1,7,9],delta:[1,7],depend:[1,7,9],deriv:[2,7],desir:[0,1,7],detail:[1,2],determin:[1,7,9],deviat:[1,9],differ:[1,7],differenti:[2,3,7],differential_evolut:7,dimension:9,directli:[1,7],discret:1,disp_r:[7,9],distinct:[1,7],distribut:[5,7],doc:[7,9],document:5,doe:[1,7],domain:[1,7],don:[1,7],done:7,driver:9,dtype:1,due:7,dump:1,e:7,each:[1,7,9],easi:1,edu:7,ego:1,elast:1,elasticnetcv:1,els:1,en:7,en_model:1,end:1,entir:[1,7],enumer:1,eqn_list:1,equat:3,equival:9,error:[3,7,9],evalu:[7,9],event:5,evolut:[2,3,7],exact:7,exact_fev:1,exampl:[0,2,3,7,9],except:[1,9],exist:7,expans:[1,7],explain:2,express:5,extra:1,f:[0,1],f_list:1,fals:[1,7,9],fast:1,faster:[1,7,9],favorit:1,feasibl:1,feel:2,figur:1,file:5,fileexchang:7,find:[2,3,7],first:[1,7,9],fit:[0,2,5,7,9],fit_break:[1,7,9],fit_force_points_opt:[7,9],fit_guess:[1,7],fit_intercept:1,fit_with_break:[1,7,9],fit_with_breaks_force_point:[7,9],fit_with_breaks_opt:[1,7,9],fitfast:[3,7,9],fittic:7,flatten:1,float32:1,float64:1,fmin_l_bfgs_b:7,follow:[1,5,7],forc:[3,7,9],forg:4,form:[1,7],formul:2,forth:[7,9],forward:[1,7],found:1,four:1,free:[2,5],from:[1,3,5,7,9],full:7,furnish:5,fx_opt:1,g:7,gelsd:[7,9],gelsi:9,gelss:9,gener:[1,7,9],gerhard:0,get:3,get_symbolic_eqn:1,geuss_breakpoint:7,git:4,github:[0,4,7],given:[1,7],global:[1,2,7,9],go:[1,7,9],goe:2,golovchenko:[2,7],good:[1,7],gp:1,gpyopt:1,grab:1,gradient:1,grant:5,growth:7,guarante:7,guess:[3,7],guess_breakpoint:7,h:7,ha:[7,9],haftka:7,have:[3,4,7],header:1,help:0,here:[1,7],herebi:5,heteroscedast:1,high:1,higher:1,highest_protocol:1,hoboken:7,holder:5,how:[1,3,7],howev:[1,7],html:9,http:[0,4,7,9],hypercub:7,i:[1,2,9],idea:[1,7],ident:1,identif:7,ie:1,ill:7,impli:5,improv:7,inc:7,includ:5,increas:7,independ:9,index:3,individu:[1,7,9],inform:[1,7],initi:[1,7,9],initial_design_numdata:1,initial_design_typ:1,input:9,instal:[1,3],intend:7,intercept:[1,7,9],interest:1,interior:1,interv:7,isn:7,issu:7,issuecom:7,ith:[1,9],j:1,jekel:[0,5,7],jersei:7,joblib:1,john:7,journal:7,jupyt:1,just:[0,1],k:1,keyword:[2,3],kim:7,kind:5,know:[1,7],known:[2,3,7,9],kwarg:[7,9],l1_ratio:1,l:[1,7],label:1,lack:7,lagrangian:7,lambdifi:1,lapack:9,lapack_driv:[1,7,9],larg:9,largest:9,last:7,latin:[1,7],lbfgsb:7,least:[2,3,7,9],lectur:7,legend:1,len:9,length:7,less:1,let:[1,7],level:7,liabil:5,liabl:5,librari:[0,2,9],licens:3,like:1,likelihood:7,limit:5,linalg:9,linalgerror:7,line:[0,2,3,7,9],linear:[0,2,7,9],linear_model:1,linearli:7,ling:[7,9],linspac:[1,7],list:[7,9],ll:[1,7,9],load:1,local:7,locat:[2,3,7,9],low:1,lower:[1,9],lowest:7,ls:1,lstsq:[7,9],lug:9,m:4,mae:7,mai:[1,7,9],manfulli:7,mani:1,manual:0,margin:7,master:7,math:7,mathemat:1,mathwork:7,matlabcentr:7,matplotlib:1,matrix:[3,7],max:[1,7],max_it:1,md:0,me:7,mean:[1,7],merchant:5,merg:5,method:[1,7,9],methodolog:7,might:7,min:[1,7],mind:1,minim:[1,7],minimum:7,mit:5,model:[3,7,9],model_typ:1,modifi:5,montgomeri:7,more:[3,7,9],much:[1,7],multi:[1,7],multipl:[1,7],must:[1,2,7,9],mx:7,my:7,my_eqn:1,my_fit:1,my_obj:1,my_pwlf:[1,7,9],my_pwlf_0:1,my_pwlf_1:1,my_pwlf_2:1,my_pwlf_en:1,my_pwlf_gen:1,my_pwlf_w:1,mybopt:1,myer:7,mypwlf:1,n:[1,7,9],n_data:[1,9],n_data_set:1,n_job:1,n_paramet:9,n_segment:[1,7,9],name:1,ndarrai:[7,9],nearli:1,necessari:[1,7,9],need:[1,7],neg:1,net:1,netlib:9,node27:9,nois:1,non:[3,7],none:[7,9],noninfring:5,nonlinear:7,normal:[1,7],note:[1,7,9],notebook:1,notic:5,now:[0,1,4],np:[1,7],num:1,number:[0,2,3,7,9],number_of_line_seg:1,numpi:[1,7,8,9],nvar:9,o:1,object:[1,7,9],object_:1,obtain:[3,5],occur:[1,7],one:[1,7,9],onli:7,open:1,opt:1,optim:[2,3,7,9],optimum:[1,7],option:[1,7,9],order:1,ordinari:1,org:[7,9],origin:1,orthogon:1,other:[1,5,7],otherwis:5,out:[1,2,5],outdat:1,output:7,over:[1,9],overal:1,overkil:2,overrid:7,own:[2,7],p:[3,7],p_valu:[1,7],packag:[3,6],page:3,pair:7,paper:[1,2],paramet:[1,7,9],parmat:7,particular:[1,5],pass:[2,3,7],pdf:7,penalti:[1,7],perform:[1,7,9],permiss:5,permit:5,persist:3,person:5,pi:1,pick:1,pickl:1,piecewis:[0,1,2,7,9],piecewise_linear_fit_pi:[0,4,7],piecewiselinfit:[1,3,6,7],piecewiselinfittf:1,piecwis:7,pip:4,pkl:1,plan:7,pleas:[0,1],plot:1,plot_acquisit:1,plot_converg:1,plt:1,plu:7,point:[2,3,7,9],polynomi:[3,9],pop:[1,7,9],portion:5,posit:1,possibl:[1,7],post:[1,2],pp:7,pptx:7,pre_var:7,predict:[1,7,9],prediction_vari:[7,9],print:[1,9],print_funct:1,prior:9,probabl:[2,7],problem:[1,2,7,9],program:1,provid:[0,5,7],publish:5,purpos:5,pwlf:[0,4],pwlf_:1,pwlftf:1,py:7,pydo:8,pypi:3,pyplot:1,python:[0,1,3],quadrat:1,qualiti:[7,9],quickli:7,r:[7,9],r_squar:[7,9],rais:[1,7],random:[1,7],rang:1,rb:1,re:1,read:7,realli:7,reason:[1,7],reciproc:[1,9],refer:[7,9],region:[1,7],regress:[2,3,7],regressionist:7,regular:1,repo:4,repres:1,reproduc:1,requir:[1,3],res0:1,res1:1,res2:1,research:0,residu:[1,7],resourc:7,respons:7,restrict:5,result:[1,7,9],rh:7,right:5,routin:[3,7,9],row:1,rsq:7,run:7,run_optim:1,s:[1,7],same:[7,9],sampl:7,save:[1,7],scipi:[1,2,7,8,9],se:[1,7,9],search:[1,3,7],second:1,section:7,see:[1,2,7,9],seed:1,segment:[0,2,3,7,9],segment_numb:1,select:1,self:7,sell:5,sep:1,seri:[1,7],set:[1,7,9],shall:5,shape:[1,7],should:[1,7,9],show:[1,7],sicpi:7,sigma_chang:1,signific:7,simpl:7,simplifi:1,sin:1,sinc:7,sine:1,size:[1,7],sklearn:1,slope:[1,7,9],small:1,smallest:9,so:[1,2,5,7,9],softwar:5,solv:9,some:[1,7],someth:1,sometim:[1,7],son:7,sourc:3,space:[1,7],special:9,specif:[1,2,7,9],specifi:[0,2,3,7,9],speed:7,sqrt:7,squar:[2,3,7,9],ssr:[1,7,9],standard:[3,7,9],standard_error:[7,9],standard_errrors_and_p:7,start:[1,7],std:1,step:7,step_siz:[1,7],store:[0,7,9],str:9,string:7,structur:7,subject:5,sublicens:5,substanti:5,sum:[1,7,9],suppli:[7,9],suppos:7,surfac:7,symbol:1,sympi:1,t:[1,7,9],tabl:1,taylor:[1,7],templat:1,tensorflow:3,termin:[1,7],test:7,tf:1,than:[3,7,9],thi:[1,2,5,7,9],third:1,three:[1,7],through:[2,3,7,9],thu:[7,9],tile:1,time:7,titl:[0,1],toler:1,tort:5,tradeoff:9,tri:1,true_beta:1,true_break:1,tweak:7,two:[1,7],type:1,typic:[7,9],ufl:7,uncertainti:[7,9],under:7,understand:7,uniform:1,unknown:3,unlik:7,unsupport:7,untest:[7,9],up:1,upon:[1,7],upper:1,url:0,us:[2,3,5,7,9],use_custom_opt:[1,7,9],usecustomoptimizationroutin:7,user:[2,7],util:1,valu:[3,7,9],valueerror:[1,7],var_1:1,variabl:[1,7,9],varianc:[1,7,9],variou:7,vector:9,venter:0,verbos:1,verbosity_model:1,veri:1,versa:7,version:7,vice:7,vol:7,vvuq:7,wa:7,wai:1,want:[1,7],warranti:5,wave:1,wb:1,we:[1,7],weight:[3,7,9],weird:1,when:[3,7],where:[1,2,7,9],whether:[5,9],which:[1,2,7,9],whom:5,wiki:7,wikipedia:7,wilei:7,within:[1,7],without:[5,7],won:[7,9],work:[1,3,7],would:[1,7],www2:7,www:[7,9],x0:1,x:[1,7,9],x_c:[1,7,9],x_data:[1,7,9],x_new:7,x_opt:1,xguess:1,xhat:1,xn:1,y:[1,7,9],y_c:[1,7,9],y_data:[1,9],y_hat:7,y_std:1,y_w:9,year:0,yet:7,yhat0:1,yhat1:1,yhat2:1,yhat:[1,7],yhat_en:1,yhat_w:1,yield:7,you:[0,3,4,7,9],your:[0,1,2,7],ytrue:1,zero:1,zeta:9},titles:["About","Examples","How it works","pwlf: piecewise linear fitting","Installation","License","pwlf","pwlf package contents","Requirements","pwlf.PiecewiseLinFit"],titleterms:{about:0,bad:1,best:1,bound:1,breakpoint:1,conda:4,constant:1,content:7,custom:1,data:1,differenti:1,equat:1,error:1,evolut:1,exampl:1,find:1,fit:[1,3],fitfast:1,forc:1,from:4,get:1,guess:1,have:1,how:2,index:4,indic:3,instal:4,keyword:1,known:1,least:1,licens:5,line:1,linear:[1,3],locat:1,matrix:1,model:1,more:1,non:1,number:1,obtain:1,optim:1,p:1,packag:[4,7],pass:1,persist:1,piecewis:3,piecewiselinfit:9,point:1,polynomi:1,pwlf:[1,3,6,7,9],pypi:4,python:4,regress:1,requir:8,routin:1,segment:1,sourc:4,specifi:1,squar:1,standard:1,tabl:3,tensorflow:1,than:1,through:1,unknown:1,us:1,valu:1,weight:1,when:1,work:2,you:1}}) \ No newline at end of file +Search.setIndex({docnames:["about","examples","how_it_works","index","installation","license","modules","pwlf","requirements","stubs/pwlf.PiecewiseLinFit"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":5,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,sphinx:56},filenames:["about.rst","examples.rst","how_it_works.rst","index.rst","installation.rst","license.rst","modules.rst","pwlf.rst","requirements.rst","stubs/pwlf.PiecewiseLinFit.rst"],objects:{"pwlf.PiecewiseLinFit":[[9,1,1,"","__init__"],[7,1,1,"","assemble_regression_matrix"],[7,1,1,"","calc_slopes"],[7,1,1,"","conlstsq"],[7,1,1,"","fit"],[7,1,1,"","fit_force_points_opt"],[7,1,1,"","fit_guess"],[7,1,1,"","fit_with_breaks"],[7,1,1,"","fit_with_breaks_force_points"],[7,1,1,"","fit_with_breaks_opt"],[7,1,1,"","fitfast"],[7,1,1,"","lstsq"],[7,1,1,"","p_values"],[7,1,1,"","predict"],[7,1,1,"","prediction_variance"],[7,1,1,"","r_squared"],[7,1,1,"","standard_errors"],[7,1,1,"","use_custom_opt"]],pwlf:[[9,0,1,"","PiecewiseLinFit"]]},objnames:{"0":["py","class","Python class"],"1":["py","method","Python method"]},objtypes:{"0":"py:class","1":"py:method"},terms:{"0":[1,7,8,9],"00":1,"00000000e":1,"0001":7,"00086000e":1,"001":1,"00538634182565454":1,"00926700e":1,"00936330e":1,"01":1,"01254006e":1,"01980300e":1,"02":[1,7],"02039790e":1,"02132890e":1,"02345260e":1,"02580042e":1,"03":1,"03016230425747":1,"03581990e":1,"03872000e":1,"039":1,"046":1,"04787860e":1,"05":[1,7],"06":1,"07":7,"07655920e":1,"07961810e":1,"1":[1,7,8,9],"10":[1,7],"100":[1,7],"1000":1,"10000":1,"1000000":1,"11":[1,7],"111181494":1,"11688258e":1,"12":[1,7],"12089850e":1,"12121":1,"123":1,"12600000e":1,"13":[1,7],"14":[7,8],"14750770e":1,"15":7,"15706975e":1,"159":1,"16":[1,7],"162":1,"16270210e":1,"16388310e":1,"165":1,"16531753e":1,"166901856":1,"168954500":1,"16951050e":1,"17305210e":1,"17617000e":1,"1763191476":1,"18":1,"18679400e":1,"19":1,"19011260e":1,"1d":[0,7],"1e":[1,7],"2":[1,7,8,9],"20":7,"2004":2,"2009":7,"2011":7,"2017":5,"2018":7,"2019":0,"2020":5,"20351520e":1,"20605073e":1,"21390666e":1,"22":1,"22120350e":1,"22767939e":1,"242":1,"25615100e":1,"26063930e":1,"26413070e":1,"28":[1,7],"2818":7,"2821":7,"28642800e":1,"3":[1,7,8],"30":1,"30997400e":1,"31196948e":1,"31279040e":1,"31543400e":1,"34180360e":1,"34184100e":1,"34390200e":1,"34620080e":1,"34831790e":1,"3508513333073":1,"36687642e":1,"36931660e":1,"37038283e":1,"37279600e":1,"37442010e":1,"38":7,"38356810e":1,"39052750e":1,"397":1,"39709150e":1,"4":[1,7],"40":1,"40913":7,"41374060e":1,"41725010e":1,"41776550e":1,"41881288e":1,"42":[1,7],"421":1,"42172312e":1,"427":1,"42877590e":1,"434717232":7,"44":[1,7],"44519970e":1,"45343950e":1,"45437090e":1,"46404554":1,"48218236957122":1,"482311769":1,"48629710e":1,"49":7,"493":1,"49429370e":1,"5":[1,7],"50":[1,7],"50144640e":1,"50958760e":1,"5102742956827":1,"51085900e":1,"51858250e":1,"5306546317065":1,"53545600e":1,"537785803":1,"54628780e":1,"54941000e":1,"55253360e":1,"55374770e":1,"55892510e":1,"55907760e":1,"56706510e":1,"5772216545711":1,"58600000e":1,"59":1,"59461900e":1,"59556700e":1,"59627540e":1,"6":[1,7],"61442590e":1,"62618058e":1,"63321350e":1,"63404300e":1,"63539960e":1,"63739040e":1,"64433570e":1,"646":1,"65299640e":1,"65610200e":1,"66106800e":1,"68092100e":1,"69747505830914":1,"69801700e":1,"7":[1,7],"70363280e":1,"720785454735":1,"74104940e":1,"75":1,"76596300e":1,"77756110e":1,"78542550e":1,"79942720e":1,"8":[1,7,8],"80525800e":1,"81":[1,7],"81388400e":1,"82":1,"821":1,"82125120e":1,"82678000e":1,"84458400e":1,"85494500e":1,"873":1,"88450940e":1,"885":1,"89945177490653":1,"9":1,"91016100e":1,"92":[1,7],"926850298824217":1,"93753841":1,"94350340e":1,"949735350431857":1,"95":[1,7],"951561315686298":1,"953964059782599":1,"95549800e":1,"96":7,"9824424358344":1,"99":1,"boolean":7,"break":[1,2,7,9],"case":[1,7],"class":[1,7,9],"default":[1,2,7,9],"do":[1,5,7],"float":[7,9],"function":[0,1,3,7,9],"import":[1,7,9],"int":[7,9],"new":[7,9],"public":0,"return":[1,7],"switch":1,"true":[1,7,9],"var":[7,9],"while":[1,7],A:[0,1,5,7],AND:5,AS:5,BE:5,BUT:5,FOR:5,For:[1,7,9],IN:5,IS:5,If:[1,4,7],In:[1,7],It:7,NO:5,NOT:5,No:7,OF:5,OR:5,One:1,Or:4,THE:5,TO:5,The:[1,5,7,9],There:7,These:[1,7],WITH:5,__future__:1,__init__:9,ab:[1,7],about:[1,3],abov:5,absolut:1,accuraci:7,action:5,add:1,addition:7,advanc:7,after:[7,9],aggress:2,aiaa:7,algorithm:2,all:[0,1,5,7],allow:[7,9],alpha:7,also:[4,7],altern:[1,2],alwai:7,an:[1,5,7,9],anderson:7,ani:[5,7],appear:7,append:1,applic:1,ar:[1,2,7,9],arang:1,arbitrarili:1,argument:1,aris:5,around:[1,7],arrai:[1,7,9],array_lik:[7,9],assembl:[1,7],assemble_regression_matrix:[1,7],associ:[5,7,9],assum:[1,7,9],assumpt:7,atol:1,attribut:[7,9],attributeerror:7,author:[0,5],automat:[1,7],axi:1,b:7,backward:1,bad:3,base:[1,2,7],bayesian:1,bayesianoptim:1,becaus:7,been:[7,9],behind:7,believ:[1,7],benchmark:1,best:[2,3,7],beta:[1,7,9],beta_index:1,better:1,between:[1,7],bfg:7,blob:7,blog:1,bool:9,both:7,bound:[3,7],break_0:9,break_loc:1,break_n:9,breakpoint:[3,7,9],c:[4,5],c_n:9,calc_slop:[7,9],calcul:[1,7,9],call:[7,9],can:[1,4,7],candid:1,care:1,center:7,chang:[0,7],changelog:0,charg:5,charl:[0,5],check:2,choleski:1,choos:1,cite:0,cjekel:[0,4,7],claim:5,clone:4,cm:7,code:1,coef_:1,coeffici:[7,9],coefficient_of_determin:7,com:[0,4,7],commonli:7,compar:[1,7],complic:1,compromis:7,comput:1,concaten:1,conda:3,condit:[5,7],confid:7,conlstsq:7,connect:5,consid:7,constant:[3,9],constrain:7,constraint:[7,9],contain:7,content:[3,6],contin:7,continu:[0,1,7,9],continuouspiecewiselinearfit:7,contract:5,control:1,cook:7,copi:[1,5],copp:7,copyright:5,correct:1,correspond:[1,7,9],correspound:[7,9],cpickl:1,creat:1,current:7,custom:[3,7,9],cv:1,d:[7,9],damag:[5,7],data:[0,3,7,9],dataset:7,dc:7,de:1,deal:5,dec:7,decim:1,decomposit:1,decreas:7,def:1,defin:[1,2,7],degre:[1,7,9],delta:[1,7],depend:[1,7,9],deriv:[2,7],desir:[0,1,7],detail:[1,2],determin:[1,7,9],deviat:[1,9],differ:[1,7],differenti:[2,3,7],differential_evolut:7,dimension:9,directli:[1,7],discret:1,disp_r:[7,9],distinct:[1,7],distribut:[5,7],doc:[7,9],document:5,doe:[1,7],domain:[1,7],don:[1,7],done:7,driver:9,dtype:1,due:7,dump:1,e:7,each:[1,7,9],easi:1,edu:7,ego:1,elast:1,elasticnetcv:1,els:1,en:7,en_model:1,end:1,entir:[1,7],enumer:1,eqn_list:1,equat:[3,7],equival:9,error:[3,7,9],evalu:[7,9],event:5,evolut:[2,3,7],exact:7,exact_fev:1,exampl:[0,2,3,7,9],except:[1,9],exist:7,expans:[1,7],explain:2,express:5,extra:1,f:[0,1],f_list:1,fals:[1,7,9],fast:1,faster:[1,7,9],favorit:1,feasibl:1,feel:2,figur:1,file:5,fileexchang:7,find:[2,3,7],first:[1,7,9],fit:[0,2,5,7,9],fit_break:[1,7,9],fit_force_points_opt:[7,9],fit_guess:[1,7],fit_intercept:1,fit_with_break:[1,7,9],fit_with_breaks_force_point:[7,9],fit_with_breaks_opt:[1,7,9],fitfast:[3,7,9],fittic:7,flatten:1,float32:1,float64:1,fmin_l_bfgs_b:7,follow:[1,5,7],forc:[3,7,9],forg:4,form:[1,7],formul:2,forth:[7,9],forward:[1,7],found:1,four:1,free:[2,5],from:[1,3,5,7,9],full:7,furnish:5,fx_opt:1,g:7,gelsd:[7,9],gelsi:9,gelss:9,gener:[1,7,9],gerhard:0,get:3,get_symbolic_eqn:1,geuss_breakpoint:7,git:4,github:[0,4,7],given:[1,7],global:[1,2,7,9],go:[1,7,9],goe:2,golovchenko:[2,7],good:[1,7],gp:1,gpyopt:1,grab:1,gradient:1,grant:5,growth:7,guarante:7,guess:[3,7],guess_breakpoint:7,h:7,ha:[7,9],haftka:7,have:[3,4,7],header:1,help:0,here:[1,7],herebi:5,heteroscedast:1,high:1,higher:1,highest_protocol:1,hoboken:7,holder:5,how:[1,3,7],howev:[1,7],html:9,http:[0,4,7,9],hypercub:7,i:[1,2,9],idea:[1,7],ident:1,identif:7,ie:1,ill:7,impli:5,improv:7,inc:7,includ:5,increas:7,independ:9,index:3,individu:[1,7,9],inform:[1,7],initi:[1,7,9],initial_design_numdata:1,initial_design_typ:1,input:9,instal:[1,3],intend:7,intercept:[1,7,9],interest:1,interior:1,interv:7,isn:7,issu:7,issuecom:7,ith:[1,9],j:1,jekel:[0,5,7],jersei:7,joblib:1,john:7,journal:7,jupyt:1,just:[0,1],k:1,keyword:[2,3],kim:7,kind:5,know:[1,7],known:[2,3,7,9],kwarg:[7,9],l1_ratio:1,l:[1,7],label:1,lack:7,lagrangian:7,lambdifi:1,lapack:9,lapack_driv:[1,7,9],larg:9,largest:9,last:7,latin:[1,7],lbfgsb:7,least:[2,3,7,9],lectur:7,legend:1,len:9,length:7,less:1,let:[1,7],level:7,liabil:5,liabl:5,librari:[0,2,9],licens:3,like:1,likelihood:7,limit:5,linalg:9,linalgerror:7,line:[0,2,3,7,9],linear:[0,2,7,9],linear_model:1,linearli:7,ling:[7,9],linspac:[1,7],list:[7,9],ll:[1,7,9],load:1,local:7,locat:[2,3,7,9],low:1,lower:[1,9],lowest:7,ls:1,lstsq:[7,9],lug:9,m:4,mae:7,mai:[1,7,9],manfulli:7,mani:1,manual:0,margin:7,master:7,math:7,mathemat:1,mathwork:7,matlabcentr:7,matplotlib:1,matrix:[3,7],max:[1,7],max_it:1,md:0,me:7,mean:[1,7],merchant:5,merg:5,method:[1,7,9],methodolog:7,might:7,min:[1,7],mind:1,minim:[1,7],minimum:7,mit:5,model:[3,7,9],model_typ:1,modifi:5,montgomeri:7,more:[3,7,9],much:[1,7],multi:[1,7],multipl:[1,7],must:[1,2,7,9],mx:7,my:7,my_eqn:1,my_fit:1,my_obj:1,my_pwlf:[1,7,9],my_pwlf_0:1,my_pwlf_1:1,my_pwlf_2:1,my_pwlf_en:1,my_pwlf_gen:1,my_pwlf_w:1,mybopt:1,myer:7,mypwlf:1,n:[1,7,9],n_data:[1,9],n_data_set:1,n_job:1,n_paramet:9,n_segment:[1,7,9],name:1,ndarrai:[7,9],nearli:1,necessari:[1,7,9],need:[1,7],neg:1,net:1,netlib:9,node27:9,nois:1,non:[3,7],none:[7,9],noninfring:5,nonlinear:7,normal:[1,7],note:[1,7,9],notebook:1,notic:5,now:[0,1,4],np:[1,7],num:1,number:[0,2,3,7,9],number_of_line_seg:1,numpi:[1,7,8,9],nvar:9,o:1,object:[1,7,9],object_:1,obtain:[3,5],occur:[1,7],one:[1,7,9],onli:7,open:1,opt:1,optim:[2,3,7,9],optimum:[1,7],option:[1,7,9],order:1,ordinari:1,org:[7,9],origin:1,orthogon:1,other:[1,5,7],otherwis:5,out:[1,2,5],outdat:1,output:7,over:[1,9],overal:1,overkil:2,overrid:7,own:[2,7],p:[3,7],p_valu:[1,7],packag:[3,6],page:3,pair:7,paper:[1,2],paramet:[1,7,9],parmat:7,particular:[1,5],pass:[2,3,7],pdf:7,penalti:[1,7],perform:[1,7,9],permiss:5,permit:5,persist:3,person:5,pi:1,pick:1,pickl:1,piecewis:[0,1,2,7,9],piecewise_linear_fit_pi:[0,4,7],piecewiselinfit:[1,3,6,7],piecewiselinfittf:1,piecwis:7,pip:4,pkl:1,plan:7,pleas:[0,1],plot:1,plot_acquisit:1,plot_converg:1,plt:1,plu:7,point:[2,3,7,9],polynomi:[3,9],pop:[1,7,9],portion:5,posit:1,possibl:[1,7],post:[1,2],pp:7,pptx:7,pre_var:7,predict:[1,7,9],prediction_vari:[7,9],print:[1,9],print_funct:1,prior:9,probabl:[2,7],problem:[1,2,7,9],program:1,provid:[0,5,7],publish:5,purpos:5,pwlf:[0,4],pwlf_:1,pwlftf:1,py:7,pydo:8,pypi:3,pyplot:1,python:[0,1,3],quadrat:1,qualiti:[7,9],quickli:7,r:[7,9],r_squar:[7,9],rais:[1,7],random:[1,7],rang:1,rb:1,re:1,read:7,realli:7,reason:[1,7],reciproc:[1,9],refer:[7,9],region:[1,7],regress:[2,3,7],regressionist:7,regular:1,repo:4,repres:1,reproduc:1,requir:[1,3],res0:1,res1:1,res2:1,research:0,residu:[1,7],resourc:7,respons:7,restrict:5,result:[1,7,9],rh:7,right:5,routin:[3,7,9],row:1,rsq:7,run:7,run_optim:1,s:[1,7],same:[7,9],sampl:7,save:[1,7],scipi:[1,2,7,8,9],se:[1,7,9],search:[1,3,7],second:1,section:7,see:[1,2,7,9],seed:1,segment:[0,2,3,7,9],segment_numb:1,select:1,self:7,sell:5,sep:1,seri:[1,7],set:[1,7,9],shall:5,shape:[1,7],should:[1,7,9],show:[1,7],sicpi:7,sigma_chang:1,signific:7,simpl:7,simplifi:1,sin:1,sinc:7,sine:1,size:[1,7],sklearn:1,slope:[1,7,9],small:1,smallest:9,so:[1,2,5,7,9],softwar:5,solv:9,some:[1,7],someth:1,sometim:[1,7],son:7,sourc:3,space:[1,7],special:9,specif:[1,2,7,9],specifi:[0,2,3,7,9],speed:7,sqrt:7,squar:[2,3,7,9],ssr:[1,7,9],standard:[3,7,9],standard_error:[7,9],standard_errrors_and_p:7,start:[1,7],std:1,step:7,step_siz:[1,7],store:[0,7,9],str:9,string:7,structur:7,subject:5,sublicens:5,substanti:5,sum:[1,7,9],suppli:[7,9],suppos:7,surfac:7,symbol:1,sympi:1,system:7,t:[1,7,9],tabl:1,taylor:[1,7],templat:1,tensorflow:3,termin:[1,7],test:7,tf:1,than:[3,7,9],thi:[1,2,5,7,9],third:1,three:[1,7],through:[2,3,7,9],thu:[7,9],tile:1,time:7,titl:[0,1],toler:1,tort:5,tradeoff:9,tri:1,true_beta:1,true_break:1,tweak:7,two:[1,7],type:1,typic:[7,9],ufl:7,uncertainti:[7,9],under:7,understand:7,uniform:1,unknown:3,unlik:7,unsupport:7,untest:[7,9],up:1,upon:[1,7],upper:1,url:0,us:[2,3,5,7,9],use_custom_opt:[1,7,9],usecustomoptimizationroutin:7,user:[2,7],util:1,valu:[3,7,9],valueerror:[1,7],var_1:1,variabl:[1,7,9],varianc:[1,7,9],variou:7,vector:9,venter:0,verbos:1,verbosity_model:1,veri:1,versa:7,version:7,vice:7,vol:7,vvuq:7,wa:7,wai:1,want:[1,7],warranti:5,wave:1,wb:1,we:[1,7],weight:[3,7,9],weird:1,when:[3,7],where:[1,2,7,9],whether:[5,7,9],which:[1,2,7,9],whom:5,wiki:7,wikipedia:7,wilei:7,within:[1,7],without:[5,7],won:[7,9],work:[1,3,7],would:[1,7],www2:7,www:[7,9],x0:1,x:[1,7,9],x_c:[1,7,9],x_data:[1,7,9],x_new:7,x_opt:1,xguess:1,xhat:1,xn:1,y:[1,7,9],y_c:[1,7,9],y_data:[1,9],y_hat:7,y_std:1,y_w:9,year:0,yet:7,yhat0:1,yhat1:1,yhat2:1,yhat:[1,7],yhat_en:1,yhat_w:1,yield:7,you:[0,3,4,7,9],your:[0,1,2,7],ytrue:1,zero:1,zeta:9},titles:["About","Examples","How it works","pwlf: piecewise linear fitting","Installation","License","pwlf","pwlf package contents","Requirements","pwlf.PiecewiseLinFit"],titleterms:{about:0,bad:1,best:1,bound:1,breakpoint:1,conda:4,constant:1,content:7,custom:1,data:1,differenti:1,equat:1,error:1,evolut:1,exampl:1,find:1,fit:[1,3],fitfast:1,forc:1,from:4,get:1,guess:1,have:1,how:2,index:4,indic:3,instal:4,keyword:1,known:1,least:1,licens:5,line:1,linear:[1,3],locat:1,matrix:1,model:1,more:1,non:1,number:1,obtain:1,optim:1,p:1,packag:[4,7],pass:1,persist:1,piecewis:3,piecewiselinfit:9,point:1,polynomi:1,pwlf:[1,3,6,7,9],pypi:4,python:4,regress:1,requir:8,routin:1,segment:1,sourc:4,specifi:1,squar:1,standard:1,tabl:3,tensorflow:1,than:1,through:1,unknown:1,us:1,valu:1,weight:1,when:1,work:2,you:1}}) \ No newline at end of file diff --git a/docs/stubs/pwlf.PiecewiseLinFit.html b/docs/stubs/pwlf.PiecewiseLinFit.html index b959756..d370154 100644 --- a/docs/stubs/pwlf.PiecewiseLinFit.html +++ b/docs/stubs/pwlf.PiecewiseLinFit.html @@ -6,7 +6,7 @@ - pwlf.PiecewiseLinFit — pwlf 2.0.5 documentation + pwlf.PiecewiseLinFit — pwlf 2.1.0 documentation @@ -41,7 +41,7 @@

pwlf.PiecewiseLinFit class pwlf.PiecewiseLinFit(x, y, disp_res=False, lapack_driver='gelsd', degree=1, weights=None)

Methods

-

calc_slopes()

Calculate the slopes of the lines after a piecewise linear function has been fitted.

conlstsq(A)

conlstsq(A[, calc_slopes])

Perform a constrained least squares fit for A matrix.

fit(n_segments[, x_c, y_c, bounds])

fitfast(n_segments[, pop, bounds])

Uses multi start LBFGSB optimization to find the location of breakpoints for a given number of line segments by minimizing the sum of the square of the errors.

lstsq(A)

lstsq(A[, calc_slopes])

Perform the least squares fit for A matrix.

p_values([method, step_size])

+
@@ -53,7 +53,7 @@

pwlf.PiecewiseLinFit

- + @@ -77,7 +77,7 @@

pwlf.PiecewiseLinFit

- + @@ -254,7 +254,7 @@

pwlf.PiecewiseLinFit

Methods

-

calc_slopes()

Calculate the slopes of the lines after a piecewise linear function has been fitted.

conlstsq(A)

conlstsq(A[, calc_slopes])

Perform a constrained least squares fit for A matrix.

fit(n_segments[, x_c, y_c, bounds])

fitfast(n_segments[, pop, bounds])

Uses multi start LBFGSB optimization to find the location of breakpoints for a given number of line segments by minimizing the sum of the square of the errors.

lstsq(A)

lstsq(A[, calc_slopes])

Perform the least squares fit for A matrix.

p_values([method, step_size])

+
@@ -269,7 +269,7 @@

pwlf.PiecewiseLinFit

- + @@ -293,7 +293,7 @@

pwlf.PiecewiseLinFit

- + @@ -387,7 +387,7 @@

Quick search

©2020, Charles Jekel. | - Powered by
Sphinx 4.3.1 + Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | diff --git a/doctrees/about.doctree b/doctrees/about.doctree index 767321e..6a59818 100644 Binary files a/doctrees/about.doctree and b/doctrees/about.doctree differ diff --git a/doctrees/environment.pickle b/doctrees/environment.pickle index 4ab3f7d..024aa47 100644 Binary files a/doctrees/environment.pickle and b/doctrees/environment.pickle differ diff --git a/doctrees/examples.doctree b/doctrees/examples.doctree index 9553f95..498866f 100644 Binary files a/doctrees/examples.doctree and b/doctrees/examples.doctree differ diff --git a/doctrees/how_it_works.doctree b/doctrees/how_it_works.doctree index a417ae3..a2d55f7 100644 Binary files a/doctrees/how_it_works.doctree and b/doctrees/how_it_works.doctree differ diff --git a/doctrees/index.doctree b/doctrees/index.doctree index b18c373..319d19b 100644 Binary files a/doctrees/index.doctree and b/doctrees/index.doctree differ diff --git a/doctrees/installation.doctree b/doctrees/installation.doctree index 41ae09e..c0859f1 100644 Binary files a/doctrees/installation.doctree and b/doctrees/installation.doctree differ diff --git a/doctrees/license.doctree b/doctrees/license.doctree index 672bd58..058bc8f 100644 Binary files a/doctrees/license.doctree and b/doctrees/license.doctree differ diff --git a/doctrees/modules.doctree b/doctrees/modules.doctree index 77c6f79..14be7ea 100644 Binary files a/doctrees/modules.doctree and b/doctrees/modules.doctree differ diff --git a/doctrees/pwlf.doctree b/doctrees/pwlf.doctree index b2162d3..ff9d168 100644 Binary files a/doctrees/pwlf.doctree and b/doctrees/pwlf.doctree differ diff --git a/doctrees/requirements.doctree b/doctrees/requirements.doctree index ce6b65c..9e712b5 100644 Binary files a/doctrees/requirements.doctree and b/doctrees/requirements.doctree differ diff --git a/doctrees/stubs/pwlf.PiecewiseLinFit.doctree b/doctrees/stubs/pwlf.PiecewiseLinFit.doctree new file mode 100644 index 0000000..50c3436 Binary files /dev/null and b/doctrees/stubs/pwlf.PiecewiseLinFit.doctree differ

calc_slopes()

Calculate the slopes of the lines after a piecewise linear function has been fitted.

conlstsq(A)

conlstsq(A[, calc_slopes])

Perform a constrained least squares fit for A matrix.

fit(n_segments[, x_c, y_c, bounds])

fitfast(n_segments[, pop, bounds])

Uses multi start LBFGSB optimization to find the location of breakpoints for a given number of line segments by minimizing the sum of the square of the errors.

lstsq(A)

lstsq(A[, calc_slopes])

Perform the least squares fit for A matrix.

p_values([method, step_size])