Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding session template #438

Merged
merged 3 commits into from Aug 31, 2022
Merged

adding session template #438

merged 3 commits into from Aug 31, 2022

Conversation

Akash-R-7
Copy link
Contributor

For documenter package

public void process() throws ZinggClientException {
try {
LOG.info("Data document generation starts");

try {
data = PipeUtil.read(spark, false, false, args.getData());
data = PipeUtilBase.read(session, 0, false, args.getData());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to be getPipeUtil() - see trainer etc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pipeutils already have session info - i don't think we need to pass them. again check existing code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sorry I missed that function name there.

Copy link
Member

@sonalgoyal sonalgoyal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor changes - please do. else all looks good

@@ -41,7 +44,7 @@ protected void createModelDocument() throws ZinggClientException {
LOG.info("Model document generation starts");

try {
markedRecords = PipeUtil.read(spark, false, false, PipeUtil.getTrainingDataMarkedPipe(args));
markedRecords = PipeUtilBase.read(session, 0, false, PipeUtilBase.getTrainingDataMarkedPipe(args));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment above

@@ -20,6 +20,9 @@ public ZFrame<D, R, C> readInternal(boolean addLineNo,
public ZFrame<D, R, C> read(boolean addLineNo, int numPartitions,
boolean addSource, Pipe... pipes);

public ZFrame<D, R, C> read(S session, int numPartitions,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed...we are creating concrete classes which have the session

@sonalgoyal sonalgoyal merged commit e3c8304 into zinggAI:generics Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants