fix: 修复了test的部分错误
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from ovf.core.GVFManager import GVFManager
|
||||
|
||||
gvf = GVFManager.load("outputs/mtee_gvf.pkl")
|
||||
# gvf = GVFManager()
|
||||
# gvf.load_from_datasets("examples/data/capa.json",npoles_cplx=2,max_points=20)
|
||||
# gvf.save("outputs/capa_gvf.pkl")
|
||||
# gvf = GVFManager.load("outputs/mtee_gvf.pkl")
|
||||
gvf = GVFManager()
|
||||
gvf.load_from_datasets("examples/data/mtee.json",npoles_cplx=2,max_points=20)
|
||||
gvf.save("outputs/mtee_gvf.pkl")
|
||||
gvf.plot_poles("outputs/mtee_poles",degree=3,geometry_1="L1",geometry_2="L2")
|
||||
@@ -17,11 +17,11 @@ sampled_points = network.y.reshape(-1,ports,ports)
|
||||
H,freqs = auto_select_multple_ports(noised_sampled_points,full_freqences,max_points=20)
|
||||
|
||||
def run_capa():
|
||||
vf = VFManager(npoles_cplx=2,freqs=freqs,H=H,model=MultiPortOrthonormalBasis,iterations=K,verbose=False)
|
||||
vf = VFManager(npoles_cplx=2,full_freqs=freqs,full_H=H,model=MultiPortOrthonormalBasis,iterations=K,verbose=False)
|
||||
vf.fit()
|
||||
vf.plot_metrics(show=False,save_path=f"outputs/{id}")
|
||||
model_responses = vf.get_model_responses(full_freqences)
|
||||
vf.plot_model_responses(show=False,save_path=f"outputs/{id}")
|
||||
vf.plot_model_responses(full_freqs=freqs,show=False,save_path=f"outputs/{id}")
|
||||
# vf.export(f"outputs/{id}")
|
||||
vf.write(f"outputs/{id}")
|
||||
|
||||
@@ -30,7 +30,7 @@ def load_model():
|
||||
|
||||
vf.plot_metrics(show=False,save_path=f"outputs/3001")
|
||||
model_responses = vf.get_model_responses(full_freqences)
|
||||
vf.plot_model_responses(show=False,save_path=f"outputs/3001")
|
||||
vf.plot_model_responses(full_freqs=freqs,show=False,save_path=f"outputs/3001")
|
||||
# vf.export(f"outputs/{id}")
|
||||
vf.write(f"outputs/3001")
|
||||
|
||||
@@ -39,7 +39,7 @@ def load_model1():
|
||||
|
||||
vf.plot_metrics(show=False,save_path=f"outputs/3002")
|
||||
model_responses = vf.get_model_responses(full_freqences)
|
||||
vf.plot_model_responses(show=False,save_path=f"outputs/3002")
|
||||
vf.plot_model_responses(full_freqs=freqs,show=False,save_path=f"outputs/3002")
|
||||
# vf.export(f"outputs/{id}")
|
||||
vf.write(f"outputs/3002")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user