hyperspy.tests.mva.test_onmf module

hyperspy.tests.mva.test_onmf.E = array([[ 0, 0, 0, ..., 0, 0, 1000], [ 0, 0, 1000, ..., 0, 0, 0], [1000, 0, 0, ..., 1000, 0, 0], ..., [ 0, 0, 0, ..., 1000, 0, 0], [ 0, 1000, 0, ..., 0, 0, 1000], [ 0, 0, 0, ..., 0, 0, 0]])
hyperspy.tests.mva.test_onmf.U = array([[0.51639863, 0.57066759, 0.02847423], [0.17152166, 0.68527698, 0.83389686], [0.30696622, 0.89361308, 0.72154386], ..., [0.03118065, 0.35795241, 0.77296464], [0.13927498, 0.74846034, 0.09063547], [0.21413127, 0.63812935, 0.75768682]])
hyperspy.tests.mva.test_onmf.V = array([[2.62511015e-01, 8.96203684e-01, 7.38725792e-01, 7.32606092e-01, 7.76323628e-01, 9.61184868e-01, 6.79524906e-02, 6.56543178e-01, 9.90727663e-01, 3.68852118e-01, 2.01742107e-01, 5.54956053e-01, 7.46581827e-01, 5.27378239e-02, 3.73978503e-01, 5.68936875e-01, 3.28060778e-01, 7.28739280e-01, 9.55795302e-02, 8.96505318e-01, 2.58047082e-01, 1.46905200e-01, 8.69679689e-01, 1.56780820e-01, 9.75292902e-01, 8.34815663e-01, 2.55176231e-01, 8.37335142e-01, 7.35484837e-01, 6.88300047e-01, 7.92774308e-01, 9.32823219e-01, 7.44828448e-02, 2.50876817e-02, 2.82340372e-01, 7.18111865e-01, 3.80731344e-01, 7.77100045e-01, 4.71309234e-01, 6.45715309e-01, 5.46292077e-01, 4.00650325e-01, 1.42155546e-01, 4.27484477e-01, 6.62307404e-01, 4.01758573e-01, 7.46453081e-02, 2.78923283e-01, 9.35585831e-01, 6.69868460e-01, 5.72997980e-01, 1.61165628e-01, 4.88255828e-01, 6.58294025e-02, 3.99720294e-02, 5.43437609e-02, 5.34351679e-01, 5.01017459e-01, 5.36765784e-01, 5.16107625e-01, 8.67687443e-01, 3.97607162e-01, 7.68531216e-01, 5.43449754e-01, 4.38826601e-01, 4.07898811e-01, 5.89395383e-01, 3.25772189e-01, 6.51349539e-01, 1.20377418e-01, 2.04028084e-01, 8.74181179e-01, 4.12550045e-01, 8.87824352e-01, 3.13092425e-01, 7.92100464e-01, 9.88646741e-01, 9.43168601e-01, 8.43304605e-01, 7.47310370e-01, 5.26057771e-01, 2.31312404e-01, 1.13391375e-01, 3.40212635e-01, 5.30176320e-01, 5.83431463e-01, 6.30453383e-01, 5.78616083e-01, 2.48696170e-01, 8.23054950e-01, 3.73512292e-01, 6.91374076e-01, 5.95057887e-01, 1.79034655e-01, 2.23250500e-01, 7.78952347e-01, 1.40896304e-01, 2.85733699e-01, 7.74339267e-03, 2.39234366e-01, 4.80852627e-01, 9.72894598e-01, 9.55223122e-01, 8.25891573e-02, 3.97724626e-01, 3.38367672e-02, 4.67278336e-01, 8.73307349e-01, 5.48239186e-02, 3.10546368e-01, 5.85461348e-01, 7.39108264e-01, 5.86180141e-01, 8.26155262e-01, 4.33728764e-01, 2.45805785e-01, 7.72142405e-01, 9.20255076e-01, 8.35630282e-01, 5.47258301e-01, 5.29536599e-01, 3.97250267e-01, 3.17407351e-01, 7.08319923e-01, 5.22122006e-01, 4.89447633e-01, 5.94568480e-02, 4.84031922e-01, 8.85567872e-01, 5.52448906e-01, 7.40166384e-01, 3.71581632e-01, 4.81837956e-01, 2.49376540e-01, 7.89071059e-01, 5.07048195e-01, 2.32895493e-03, 6.63101677e-01, 9.92790163e-01, 6.56075732e-01, 1.81316264e-01, 1.19926287e-01, 9.62409438e-01, 7.43414012e-01, 3.89416590e-01, 4.85160358e-01, 6.29340288e-01, 4.70517805e-01, 9.20178689e-01, 4.13856200e-01, 3.81128414e-02, 7.21780456e-01, 7.91693374e-01, 1.18879572e-01, 1.06399293e-01, 3.69393104e-01, 1.40631606e-01, 6.99761298e-01, 6.97248901e-01, 7.86740995e-01, 2.43171291e-01, 2.31537353e-01, 6.68579781e-01, 6.91993121e-01, 2.95348028e-01, 6.67964218e-02, 8.81525788e-01, 1.47207912e-01, 7.96301276e-01, 4.34354017e-01, 7.04624646e-01, 8.42748133e-01, 2.66742821e-01, 2.99011791e-01, 6.74110695e-01, 5.97956961e-01, 4.79240010e-01, 4.64674643e-01, 3.41175786e-01, 9.15885148e-01, 7.07745749e-01, 2.10424443e-01, 6.47333961e-01, 2.83273782e-01, 7.32154186e-01, 4.38601330e-01, 8.82067754e-01, 4.19638209e-01, 1.63903445e-02, 2.04868008e-01, 1.61316067e-01, 3.42694337e-01, 5.46050443e-01, 4.56038528e-02, 6.19381095e-01, 3.34392817e-01, 9.37873675e-02, 2.08341880e-01, 3.72114484e-01, 4.98405832e-01, 3.73457703e-01, 3.35259887e-01, 3.71482622e-02, 8.15182461e-01, 5.60487209e-01, 1.42209324e-01, 9.25624686e-01, 2.86170835e-01, 7.78898067e-01, 2.91589275e-01, 2.16011512e-01, 2.56530121e-01, 1.66814534e-01, 6.51871754e-01, 8.62786390e-01, 9.84705403e-01, 6.95287155e-01, 6.18382767e-01, 2.80086000e-01, 7.47925013e-01, 8.21637498e-01, 2.14914109e-01, 8.04391109e-01, 4.55021729e-01, 6.40084427e-01, 6.73012859e-01, 9.05302984e-01, 4.19728545e-03, 3.99628243e-01, 6.94766981e-01, 7.85342999e-01, 1.95183412e-01, 9.56269454e-01, 9.03210347e-01, 4.19262214e-01, 6.61258567e-01, 9.23187068e-01, 3.09800099e-01, 3.50079067e-01, 4.93307025e-01, 2.21334375e-01, 1.59949071e-01, 1.48235416e-01, 3.69704224e-01, 3.44745778e-01, 4.81957630e-01, 3.06039478e-01, 1.79385482e-01, 9.30139218e-01, 4.65424466e-01, 7.74413088e-01, 1.71786987e-01, 2.00526670e-01, 4.31169604e-01, 9.49222402e-01, 6.54198823e-01], [4.84626912e-01, 7.96716824e-01, 8.41468195e-01, 5.94109864e-01, 2.33241839e-01, 5.30578573e-01, 7.91782061e-01, 2.35715570e-01, 9.63911777e-01, 4.17936871e-01, 3.26747750e-01, 9.88165472e-01, 5.81989236e-01, 8.47628099e-01, 3.41741626e-02, 2.09592065e-01, 2.20850021e-01, 9.08244407e-01, 2.78687156e-02, 9.60170178e-01, 3.28391163e-01, 9.57835939e-01, 1.36218019e-01, 4.15840126e-02, 3.40435307e-01, 9.30237829e-01, 3.20418148e-01, 5.04011802e-01, 8.83691322e-01, 1.32471846e-01, 9.18649258e-01, 2.13580128e-01, 8.44833715e-01, 6.53258382e-02, 8.67600942e-02, 4.50057826e-01, 3.42162011e-01, 8.46221672e-02, 8.77379152e-01, 3.97627219e-01, 7.76635991e-02, 9.40270117e-02, 3.19922250e-01, 9.43089655e-01, 3.80176306e-01, 4.47441611e-01, 7.08918287e-01, 5.02902825e-01, 6.66384730e-01, 3.04181859e-01, 1.47811577e-01, 2.78659997e-01, 9.22355479e-01, 9.12521663e-01, 6.09227400e-01, 7.21283627e-01, 1.52557767e-01, 9.52403113e-01, 7.56402739e-01, 1.44015009e-01, 7.36748124e-01, 2.94375353e-01, 9.06191626e-01, 9.79771095e-01, 3.97119413e-01, 7.09171720e-01, 4.46315290e-01, 7.83728258e-01, 8.82017220e-01, 5.90337778e-01, 8.29327398e-03, 8.03335845e-01, 2.11274005e-01, 5.86675408e-01, 1.15537323e-01, 2.31258085e-01, 8.96796377e-01, 6.67264507e-01, 5.74178604e-01, 6.13163998e-01, 8.95123059e-01, 9.79034785e-01, 5.93720678e-01, 2.14824810e-02, 4.44110884e-01, 8.42852791e-01, 4.63916380e-01, 3.30753966e-01, 6.29602620e-01, 5.20519612e-02, 2.26493402e-01, 2.85103636e-01, 1.91147767e-01, 3.61051791e-01, 6.03288602e-01, 7.24165564e-01, 4.82564444e-01, 2.77347231e-01, 5.22348151e-02, 1.18872630e-01, 6.60866937e-01, 7.78668570e-01, 1.99659947e-03, 5.63002890e-01, 4.40039460e-01, 9.90212377e-01, 2.41206256e-01, 3.50166591e-01, 9.68258787e-01, 6.43128475e-01, 7.99836090e-01, 7.39293838e-01, 2.88294577e-01, 5.84828905e-01, 6.34548809e-01, 2.99014003e-01, 2.71933085e-01, 7.52734609e-01, 5.55514594e-01, 8.43284807e-02, 3.87556463e-01, 2.69640365e-01, 2.48044290e-01, 8.81007283e-01, 2.20461052e-01, 6.22161880e-01, 6.42007944e-01, 5.59317898e-01, 7.74990566e-01, 2.22606610e-01, 3.32074352e-01, 2.79798396e-01, 4.72965549e-01, 9.39967770e-01, 1.68753035e-01, 6.94578269e-02, 9.71710973e-01, 3.54517359e-02, 6.05059501e-01, 5.91330474e-02, 4.88467016e-01, 1.84444693e-01, 6.37363520e-01, 7.38751675e-01, 5.79069340e-02, 3.41487693e-02, 6.44571253e-01, 8.84552549e-01, 8.52813283e-01, 9.27775578e-01, 3.95715465e-01, 6.06028994e-01, 7.17284023e-01, 2.59223305e-01, 5.66442401e-01, 6.78666160e-01, 3.54125076e-02, 7.81106080e-01, 4.07234233e-01, 6.68692744e-02, 7.01715714e-01, 5.07705973e-01, 5.96248905e-01, 6.31085814e-01, 1.58680281e-01, 9.11782120e-02, 3.78724582e-01, 5.80144677e-01, 5.02003898e-01, 1.43648272e-01, 9.50763533e-02, 1.67523187e-01, 7.80138525e-01, 4.70786827e-01, 6.60725549e-01, 8.51027853e-01, 9.87207279e-01, 2.80365071e-01, 4.68716307e-01, 9.61623734e-01, 3.99518834e-02, 4.37704783e-01, 6.56187837e-01, 2.07979587e-02, 8.76568412e-01, 9.84500439e-02, 1.46625206e-01, 5.33753959e-01, 4.13278516e-01, 8.55297186e-01, 5.89747113e-02, 5.26554739e-01, 4.51097497e-01, 1.79874099e-01, 1.26384979e-01, 8.34980841e-01, 9.64520330e-03, 9.37495652e-01, 3.59337950e-02, 3.41909170e-01, 4.69005177e-01, 7.73056430e-01, 7.78960212e-01, 2.22386836e-01, 1.19012889e-01, 9.00466314e-03, 6.82659864e-01, 5.07173446e-01, 6.39709904e-02, 6.25657150e-01, 7.99605998e-01, 8.04214673e-01, 5.10874025e-01, 4.29121639e-01, 5.45414026e-01, 1.58974899e-01, 8.82475399e-01, 7.20937600e-01, 6.70814957e-01, 4.27798647e-01, 3.90679340e-01, 4.54104419e-01, 9.82482488e-01, 2.42469874e-01, 1.80112744e-01, 7.16277324e-01, 6.58955596e-01, 2.46949774e-01, 6.50851897e-01, 1.42889073e-01, 1.24015085e-01, 4.15981029e-01, 9.83109681e-01, 1.29347182e-01, 4.47060874e-01, 4.64449713e-01, 9.86907648e-01, 6.20126890e-01, 5.95412369e-01, 6.55117994e-01, 8.47286669e-01, 8.24780409e-01, 6.93486392e-01, 9.06554221e-01, 4.71886864e-01, 8.66715441e-01, 3.12166295e-01, 6.07302055e-01, 2.29730116e-01, 6.02530508e-02, 4.09095429e-01, 1.05132608e-01, 7.44233794e-01, 9.67780251e-01, 6.92372975e-01, 7.21484600e-01], [3.02370710e-01, 1.50028905e-01, 3.17502502e-01, 1.12593881e-01, 9.73432764e-01, 4.71118543e-02, 9.38165698e-01, 7.20416579e-01, 7.18522392e-01, 4.99725511e-01, 6.84782478e-01, 4.39484594e-01, 2.92426965e-01, 2.26233405e-01, 5.67394275e-01, 5.04308590e-01, 6.95226031e-01, 5.99612188e-02, 5.02896809e-01, 4.57248137e-01, 8.67639702e-01, 2.73661895e-01, 9.64286883e-01, 7.50068163e-01, 1.35006970e-01, 1.15382101e-01, 3.73030939e-01, 7.46866708e-01, 5.92227337e-01, 4.27409587e-01, 7.36614283e-01, 8.45304825e-02, 1.49492941e-01, 3.78572662e-02, 3.75080203e-01, 8.69767926e-02, 1.26675350e-01, 9.81905559e-01, 5.89277014e-01, 1.18856326e-01, 8.44530515e-01, 4.54388601e-01, 5.80542415e-01, 2.51227783e-01, 3.12343127e-01, 1.21574131e-01, 6.60395174e-01, 4.53643812e-01, 7.56674460e-01, 7.82051982e-01, 4.35286023e-01, 8.67971363e-01, 2.69897449e-02, 1.22933489e-01, 5.82969820e-01, 2.43482089e-03, 4.07278318e-01, 8.54346760e-02, 3.55853519e-01, 1.00938463e-01, 6.98146160e-01, 5.63979264e-01, 8.01874972e-01, 6.16882971e-01, 6.75064313e-01, 7.57010869e-01, 3.20473532e-01, 5.63304977e-01, 4.46176885e-02, 4.50613917e-01, 4.73399756e-01, 7.30594338e-01, 4.36107025e-01, 5.59428583e-01, 1.36760005e-01, 9.12990323e-02, 1.52645047e-01, 2.15591296e-02, 7.56475967e-01, 7.43039735e-01, 1.05561373e-01, 7.90079322e-01, 7.01250205e-01, 5.81870815e-01, 2.79952542e-01, 7.24423053e-02, 9.56887474e-02, 7.41400878e-01, 6.89445230e-01, 6.36007877e-01, 6.60608271e-01, 8.88592822e-01, 3.13107171e-01, 5.49280357e-01, 3.18570200e-01, 4.04778865e-01, 3.18704301e-01, 6.66546642e-01, 7.37091765e-01, 5.26216483e-01, 5.57351650e-01, 9.07734441e-01, 1.07692903e-01, 9.33537857e-01, 2.34299302e-01, 2.04011270e-01, 9.04541143e-01, 7.44162061e-01, 8.14788247e-01, 5.98307592e-02, 1.21801527e-01, 4.41312709e-01, 4.47653006e-01, 2.57811427e-01, 7.63546340e-01, 3.53441390e-01, 4.14133136e-01, 5.63656093e-01, 5.94192794e-01, 5.05770520e-01, 4.24997312e-01, 7.75267184e-01, 5.66190155e-01, 8.79497649e-01, 7.19345535e-01, 5.31578447e-01, 7.44090818e-01, 3.21299137e-01, 7.45460146e-01, 1.68028345e-01, 7.79379078e-01, 8.76024077e-02, 5.12079490e-04, 1.70853808e-02, 4.75808876e-01, 5.84809829e-01, 4.11771965e-01, 6.99682561e-01, 8.33213089e-01, 5.07617662e-01, 9.74721170e-01, 6.18425220e-01, 5.76744121e-01, 6.22240806e-03, 7.24689732e-01, 7.79156518e-01, 7.92025223e-01, 2.48143086e-01, 9.81734053e-01, 7.32197126e-01, 8.65364706e-01, 6.70284352e-01, 9.51599864e-01, 3.60084674e-02, 7.80479939e-01, 7.93574126e-01, 1.59258978e-01, 2.71489276e-01, 6.34120534e-01, 9.07636554e-01, 6.67175879e-01, 7.06617394e-01, 9.67736380e-01, 8.84506181e-02, 4.26203811e-02, 3.86612321e-02, 4.58667147e-01, 7.53196000e-01, 6.96347781e-01, 4.92694782e-02, 7.53063204e-01, 2.32376825e-01, 8.15810754e-01, 9.43502968e-01, 3.00735639e-02, 7.94296651e-02, 5.42641324e-01, 6.14305771e-01, 3.92468668e-01, 7.69828364e-01, 6.34023529e-01, 8.63788306e-01, 4.80205052e-01, 2.05848524e-01, 7.20776508e-01, 3.97756512e-01, 4.69514774e-01, 3.78774810e-01, 1.01972851e-01, 5.88050349e-01, 6.47963894e-01, 6.68443114e-01, 1.86218159e-01, 8.17682540e-01, 2.77479039e-01, 9.84715521e-01, 6.47438849e-01, 1.43336866e-01, 7.55022705e-01, 8.70969001e-01, 9.63138042e-01, 4.06555557e-01, 8.43661407e-01, 1.94256326e-01, 3.94699587e-02, 4.08168259e-02, 1.89681856e-01, 5.59267271e-02, 9.78715828e-01, 3.33428570e-01, 3.27235306e-01, 9.47911080e-01, 1.66180504e-01, 8.13835281e-02, 3.04685757e-01, 1.78165751e-01, 8.26991241e-01, 7.93238396e-01, 1.19214958e-02, 8.20414127e-03, 9.39437153e-01, 2.13893895e-01, 4.60630973e-01, 8.92893441e-01, 2.42564735e-01, 3.42792989e-01, 6.22675724e-01, 5.07092052e-01, 6.58733822e-01, 1.02888377e-01, 7.50519830e-01, 3.48887708e-01, 6.86479927e-01, 4.93933948e-01, 2.03183863e-01, 8.82174816e-01, 3.10890395e-01, 4.85971618e-01, 9.14574987e-01, 4.68228141e-01, 5.91312804e-02, 7.47725765e-01, 6.57915998e-01, 5.40702283e-02, 4.69362021e-01, 7.21174742e-02, 8.02710207e-01, 3.20879247e-01, 4.36187322e-01, 1.04488200e-01, 5.03796064e-01, 5.34886715e-01, 9.95267712e-01, 2.22884250e-01, 4.83819295e-02, 4.82188167e-01]])
hyperspy.tests.mva.test_onmf.X = array([[0.42073097, 0.92173078, 0.87071625, ..., 0.78128267, 0.8866696 , 0.76328519], [0.62927598, 0.82479867, 0.9681106 , ..., 0.92301493, 0.677625 , 1.00872125], [0.73182469, 1.09531327, 1.20780283, ..., 1.15799636, 0.94500244, 1.19346493], ..., [0.4153805 , 0.42909796, 0.56965772, ..., 0.53214507, 0.31483146, 0.6513699 ], [0.42669075, 0.73472763, 0.76146858, ..., 0.80459749, 0.65480176, 0.67481949], [0.59456878, 0.81398855, 0.93571731, ..., 0.87877234, 0.68174007, 0.96583255]])
hyperspy.tests.mva.test_onmf.Y = array([[4.20730970e-01, 9.21730777e-01, 8.70716248e-01, ..., 7.81282669e-01, 8.86669598e-01, 1.00076329e+03], [6.29275978e-01, 8.24798674e-01, 1.00096811e+03, ..., 9.23014931e-01, 6.77625000e-01, 1.00872125e+00], [1.00073182e+03, 1.09531327e+00, 1.20780283e+00, ..., 1.00115800e+03, 9.45002443e-01, 1.19346493e+00], ..., [4.15380502e-01, 4.29097957e-01, 5.69657725e-01, ..., 1.00053215e+03, 3.14831465e-01, 6.51369898e-01], [4.26690751e-01, 1.00073473e+03, 7.61468579e-01, ..., 8.04597493e-01, 6.54801761e-01, 1.00067482e+03], [5.94568777e-01, 8.13988552e-01, 9.35717311e-01, ..., 8.78772342e-01, 6.81740072e-01, 9.65832547e-01]])
hyperspy.tests.mva.test_onmf.compare(a, b)
hyperspy.tests.mva.test_onmf.m = 512
hyperspy.tests.mva.test_onmf.n = 256
hyperspy.tests.mva.test_onmf.r = 3
hyperspy.tests.mva.test_onmf.rng = <mtrand.RandomState object>
hyperspy.tests.mva.test_onmf.sparse = 0.1
hyperspy.tests.mva.test_onmf.test_corrupted_default()
hyperspy.tests.mva.test_onmf.test_corrupted_robust()
hyperspy.tests.mva.test_onmf.test_default()
hyperspy.tests.mva.test_onmf.test_robust()