Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Analtyical methods and improve imports (#189)
* Initial push of SAS Viya procedures * Add to_json method to the SAS data object. * update doc, wrap function for correct docstring, add TODO's * convert reg method * convert reg method * update mixed method (proc mixed) * add functionality to convert model syntax to input target syntax other general cleanup * emit warning message if python version is older than 3.4 * minor cleanup * allow var statement to take str and list * merge changes in sasproccommons and convert glm and mixed methods in sasstat * improve debug messages and target/input handling * add additional logging * move proc decorator to new file for use across all procs. * fix imports and loggers * add the SAS Viya ML procedures as methods for the viyaml object * improve decorator function to generate doc for procedure methods * replace the stat methods with a new decorator to make tab complete and documentation easier. Should not break existing code * convert sasutil to use proc_decorator * convert sasets to use proc_decorator * convert sasqc to use proc_decorator add statements for SHEWHART to sasproccommons. * update doc links for sasstat * convert sasml to use proc_decorator * convert sasViyaML to use proc_decorator * clean up imports and format code * add savestate for strings and reformat file. * Change imports to be more specific no more '*' * create Codegen class to simplify code generation for SAS statements * Fix imports to avoid import errors * initial push of test cases for ML and ViyaML * remove commented code blocks from sasioiom and update imports for sasbase * fix imports and continue moving code into codegen class * change imports and finish moving code into codegen class * add back commented code for potential future work. * update imports and minor code changes * ensure order of proc statements in some cases to avoid errors (input before target, class before model) * simplify the assignment of libref in pandas df creation * add boolean types for several statements proper name of hpclus * update and expand test cases * turn off debug and update docstrings * fix issues with codegen based on testware. * create smoke tests for ViyaML * update signatures and docstrings based on accepted types * change test assertion for UCM tests because the number of ODS tables and graphs has changed * change import to include SASResults * fix codegen issues related to refactor * change logging level to WARN everywhere * minor changes to pandas tests and code * minor changes to testware and code to fix issues. * reformat test_sasdata * change __init__ imports reorder imports for sasiostdio comment out debug import for sasbase * fix testcase missing required parameter. update doc * reformat for pep8 * create testware for ViyaML and minor fixes in codegen to handle new code base. * changes for ViyaML * Update the documentation for how to add a procedure as a new method. * add methods for issue #183. in sasets methods: autoreg, expand, varmax, x11, x12 in sasutil method: univariate * Merge in changes from Tom's review. Mostly fix imports and revert formatting. * Remove new methods from issue 183 * make output and out compatible * add support for 'out' statement to match 'output'. Support output types of str, bool, SASdata The out statement was used prior to 2.4.0 but the statement for most procedures is 'output' both are now treated correctly. * handle output statements that include 'out=' str or just str
- Loading branch information