vertex-ai learn curve - batch predictions (label photos) without deployment to an endpoint? - google-cloud-vertex-ai

--resolved -- by using cli to UNDEPLOY the model then following docs
https://cloud.google.com/vertex-ai/docs/image-data/classification/get-predictions#curl
to submit batch-prediction
vertex-ai newbie just trying to learn basics without alot of cost, using the vertex-ai dashboard to good effect ( training model and endpoint to recognize/ label photos using 3 categs from training labels)
but the problem i experience was that somehow , inadvertently thru the dashboard, the model was deployed and led to daily $30 charges to the project.
IMO - from the vertex-ai docs, you should be able to run batch-predictions WITHOUT having to deploy the model/ endpoint.
Is anyone able to verify the above?
with the current price lists, on a very small budget its possible to touch most of the bases ( create, train, test a model to label photos ) as long as you DO NOT deploy it. AND batch predicitions appear to be allowed with NO deployment.
The only costly SKU i ran into was the actual deployment see photo

--resolved -- by using cli to UNDEPLOY the model then following docs https://cloud.google.com/vertex-ai/docs/image-data/classification/get-predictions#curl
to submit batch-prediction
For the undeploy command details you can visit this documentation here.
Sample command:
gcloud ai endpoints undeploy-model 123 --project=example --region=us-central1 --deployed-model-id=456

Related

Generate Report in Plugin (Dynamics 365)

i gust curious maybe someone heard about solution how to get Report (SSRS Report) in Plugin (i want to export it in pdf from CRM and save in Sharepoint).
I have tried following solution:
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/247210/how-to-run-the-crm-report-through-sdk?pifragment-97030=1#responses
this one is not working anymore because of authentication. I tried to authentificate my user in WebClient inside plugin but no luck. Maybe someone know how to do it
There is an excellent article/blog posted by Bob Guidinger for Generating Report and sending Email for D365 Online.
Once you get first step running, you can extend it to perform you specific operation.
Blog mentioned about Azure function and plugin (combination).
Scheduling Reports in Dynamics 365 - Part 1
I tried this for one of my project and it worked fine with me. This shall be a bit learning curve if you do not know how to create azure functions and some small parts.
Happy Coding!!
Make sure to upvote, Accept if this helps!!

How to group users together by aws-cognito attributes?

I am trying to group users of my application together under a 'Company'.
I have done this in other applications by giving the user's an account attribute/property called "company", which equals a string.
Then all data associated with that company is available to that user.
How can I do this with the AWS Amplify framework?
After some research I was able to figure this out.
In case anyone else runs into this problem...
What I was looking for was what AWS Amplify classifies as a 'Custom Resolver'. Essentially the resolver is the API logic for the GraphQL server on AWS' end.
Within your Amplify project structure there should be a folder called 'Resolvers'.
Mine was in
/backend/api/[API_NAME}/resolvers
Inside of this folder you are able to place different types of customer resolver logic for your backend.
Ideally you would place two custom files for every custom endpoint.
The two custom files would be as follows:
Query.listSomeTable.req.vtl
Query.listSomeTable.res.vtl
OR
Mutation.createSomeTable.req.vtl
Mutation.createSomeTable.res.vtl
These two files will override the resolver logic that AWS produces automatically. The files are in Apache's Velocity Engine format; '.vtl'.
You can read more about it here:
https://aws-amplify.github.io/docs/cli-toolchain/graphql#add-a-custom-resolver-that-targets-a-dynamodb-table-from-model

Google Analytics Reporting API filters/segements

I'm trying to use the Google Analytics Core Reporting API and have the following troubles. I know how to fetch that I want the problem I have is:
I want to use a filter only for specific metrics and not for all of them.
Is this even possible?
Here is an example how my Reporting "Code" looks like:
Metrics "ga:sessions
ga:goal6Completions
ga:goal7Completions
ga:goal10Completions
ga:totalEvents
ga:uniqueEvents"
Dimensions "ga:date"
Filters "ga:eventCategory==customerType"
I have the same problems with segments as with the filters that all metrics all segmented/filtered and only specific metrics should.
There really isn't another way other to get the data you want without creating a new request where the filter isn't applied unfortunately.
Just remember that you are only allowed five requests total. To give context, this may only apply to how I use the Reporting API, but I use Google App Script to push data to Google Sheets.
This may or may not be helpful to you, but the reporting code I use I have made available in a repo on GitHub: https://github.com/jessfeliciano/aggregateGoogleAnalyticsReporting/blob/master/objectQueryWithFilter.js
I've included a guide that gives additional information regarding creating requests in general, so it may spark other ways to go about creating your data trees. I hope this helps.

doing online surveys with spring mvc and limesurvey

hi i'm working in a spring mvc project and i need to add a survey option, the requeriment is sending a link inside a email to a survey or i dont know if you can send the questions inside the email, i will probably lean for the firts option, i'm thinking of using limesurvey or any other open source survey tool who can be integrated with my spring mvc web application.
since i have not worked with a survey tool before, how acctually limesurvey works i asume that this is how it works:
1) you install limesurvey in your server
2) you create the survey with limesurvey UI after it was succesfully installed in your server
3) that survey that i just create give me somekind of URL
if this assumptions are correct,
QUESTIONS:
1) how can i get that url in my spring mvc application so i could send it in a email, since they are to different applications, does lime survey save that url in data base where i could connect with my spring mvc application and get it?
2) the same thing goes with the results can i get access with my spring mvc application to the results since i need that info to create reports,
3) can i create limesurvey surveys from my spring mvc application, if limesurveys create the surveys in a data base can i crete them from and UI in spring and save them in the limesurvey database
4) is there a way to configure the valid period time of a survey, since i dont want that a user can access the survey for long periods of times like 1 hour doing the survey, or being able to access the survey from the link for a entire week, since this can be a problem to my server capacity
Url : if unique link for each user is needed : https://manual.limesurvey.org/RemoteControl_2_API#get_participant_properties . Else a survey link it's allways the same example.org/surveyid.html for example.
https://manual.limesurvey.org/RemoteControl_2_API#export_statistics
https://manual.limesurvey.org/RemoteControl_2_API#add_survey and/or https://manual.limesurvey.org/RemoteControl_2_API#import_survey etc ...
Start and expiry date-time : https://manual.limesurvey.org/Survey_settings#Publication_.26_access_control
Then : I think LS are able to be integrated in your MVC. ANd remind : you can too use Extra plugin use LS core system with newDirectRequest event : https://manual.limesurvey.org/NewDirectRequest Return some json for your MVC if it's easiest for you.
Denis

Oracle CRM On-Demand - Use Tasks Status to update Service Request Status

We're using CRM On-Demand for our Service Group and I'm running into an application limitation and am wondering if anyone has a workaround or just some general ideas on how to accomplish our goal.
In the application, our major focus is around the Service Request and driving for users to create Tasks for all Activities related to working towards closure. For example, a customer calls in and we need a technical resource to make a return call to diagnose the issue in detail, so a Task is assigned to that resource. Once that Task has been marked as completed, I'd like the Status to be updated. I tried creating a workflow using JoinFieldValue(), which wasn't working. I tried a more basic approach and tried to just have a field on the Service Request be populated with the Status of the Task, but that did not work either.
Upon further investigation in the Help File, there is a relationship from the Activity object to the Service Request object, but not one the other way.
So, has anyone else run into this limitation and found some other method to have a Status change on the Task update the Status of a Service Request?
(Also, I'd like to try and avoid writing a custom web service for this purpose, which is why I'm trying to use the tools in the app)
Thanks in advance for any ideas!
actually, if I well understood your issue is related on workflow cross object.
OCOD doesn't manage this type of workflow when you need to use workaround.
In order to cover a cross object worklflow you have many possibilities:
webservices as you said, but you could imagine a js code that will run WS and hosted directly into OCOD (in R19 you could hoste that in Client Side extension). That could be a good solution
Another one could be using Report with a custom look up functionnality with the usage of "Callback" function
I would prefer the 1st solution.

Resources