Closed MOJTABAFA closed 8 years ago
@magsol Solved !------- Dear Dr. Quinn : Here is the first error I faced in running the program , would you please checki it and advise me ? [Anaconda3] C:\Users\Mojtaba Fazli\Desktop>python dictlearningpython.py -i test -d file_d.txt -o file_z.txt -s file_summary.txt -l 1025 -P 75 -n 254 -m 33 -e .0 2 File "dictlearningpython.py", line 129 file_s = str(args['input']) ^ IndentationError: unindent does not match any outer indentation level
@magsol Solved !----- even I resolved it , again in other lines it gives the same error, However, the indentation is correct and sometimes I had to re-write the instructions !
Solved ! ---- sysntax errors are debugged now. My input file is in desktop, where the original .py file is located. but after running the following error is been appeared :
[Anaconda3] C:\Users\Mojtaba Fazli\Desktop>python DictLearningPythonclean.py -i
test.txt -d file_D.txt -o file_Z.txt -s file_Summary -l 1046 -P 528 -n .4 -m 256
-e 0.01
The Input file is loading...
Traceback (most recent call last):
File "DictLearningPythonclean.py", line 129, in
fh = iter(open(fname))
FileNotFoundError: [Errno 2] No such file or directory: 'test.txt'
@magsol I already modified the path and this problem is solved too. but again there is another problem which belongs to set the parameters. As I emphasized in first comment ,Since I'm not expert in this program, I need the input parameters from xiang. Unless I dont have the parameter I cannot check with more scrutiny:
[Anaconda3] C:\Users\Mojtaba Fazli\Desktop>python DictLearningPythonclean.py -i test.txt -d file_D.txt -o file_Z.txt -s file_Summary -l 1046 -P 528 -n .4 -m 256 -e 0.01 The Input file is loading... Training ....
Initalization is complete!
Analyzing component 1 ...
Traceback (most recent call last):
File "DictLearningPythonclean.py", line 129, in
Thanks
@MOJTABAFA:
Several things.
ValueError
message you are receiving in your last post means you are trying to multiply two arrays with different dimensions. It looks like line 98, the multiplication of S
and u_old
, has dimensions that don't line up; S
is 170x39510, and u_old
is a vector of length 1046. There is a bug somewhere that will need to be fixed so these can be multiplied.@LindberghLi:
Can you post some sample input data and the expected output?
@magsol
@MOJTABAFA, in Sublime Text, make sure you have these settings in your user profile configuration:
"translate_tabs_to_spaces": true,
"wrap_width": 80,
"tab_size": 4
Those should fix the inconsistencies between Sublime Text and the console.
I have created two folders in the project, named "testSe1" and "testSet2", which contains the input file ("S.txt"), the parameter setting ("parameter.txt") and the output files ("D_groundtruth.txt" and "z_groundtruth.txt'). These simulated data are of very small scale, and solely for the purpose of testing whether the current code are running.
Thanks Xiang, I already left the lab, tomorrow will back and complete it. Thanks Dr. Quinn for all lessons you are teaching me.
@LindberghLi For running and debugging the python code , I need following information to make sure about the functionality of the program, after that we can work on benchmarking of this program and the C++ version one :
Please provide me this info as soon as you can .