Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

using ipfn in python

import numpy as np
from ipfn import ipfn

m = [[40, 30, 20, 10], [35, 50, 100, 75], [30, 80, 70, 120], [20, 30, 40, 50]]
m = np.array(m)
xip = np.array([150, 300, 400, 150])
xpj = np.array([200, 300, 400, 100])

aggregates = [xip, xpj]
dimensions = [[0], [1]]

IPF = ipfn.ipfn(m, aggregates, dimensions, convergence_rate=1e-6)
m = IPF.iteration()
print(m)
Comment

using ipfn in python

import numpy as np
from ipfn import ipfn

m = [[40, 30, 20, 10], [35, 50, 100, 75], [30, 80, 70, 120], [20, 30, 40, 50]]
m = np.array(m)
xip = np.array([150, 300, 400, 150])
xpj = np.array([200, 300, 400, 100])

aggregates = [xip, xpj]
dimensions = [[0], [1]]

IPF = ipfn.ipfn(m, aggregates, dimensions, convergence_rate=1e-6)
m = IPF.iteration()
print(m)
Comment

PREVIOUS NEXT
Code Example
Python :: sum function in python 
Python :: list comperhension condition in python 
Python :: How to print specific figure in python 
Python :: why do we need to preprocess data 
Python :: import knn in python jupyter 
Python :: increase tkinter window resolution 
Python :: python using recursion advanced 
Python :: Check if a Key is Already Present in a Dictionary 
Python :: Matrix Transpose using Nested Loop 
Python :: how to downlaod file using python 
Python :: create date range python 
Python :: django command to fetch all columns of a table 
Python :: 90/360 
Python :: machine earning to predict sentimentanalysis python 
Python :: what is require_self 
Python :: mylist = [“hello”, “bye”,”see ya”,”later”] phrase = mylist[1] 
Python :: sqlite to python list 
Python :: numpy convolution stride tricks 
Python :: vvm 2020 exam date 
Python :: como inserir regras usg pelo prompt 
Python :: print class name python 
Python :: python if statement syntax 
Python :: add tab to python output 
Python :: how to look up players states in skyblock hypixel python 
Python :: sklearn standardscaler for numerical columns 
Python :: token validation in flask socket 
Python :: ing or ly add to str 
Python :: how to rub softwares using python 
Python :: for t in range(t) python 
Python :: Customizing plot with axes object 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =