Comments (2)
Makes sense, if anything, I would move the matplotlib assumption above the choosing any single dimension, since that one is more arbitrary and kind of a last ditch naive approach.
from trulens.
I would move the matplotlib assumption above the choosing any single dimension, since that one is more arbitrary and kind of a last ditch naive approach.
My thinking was that this ordering would lead to the greatest convenience. Basically, I like to use the Tiler
class as a convenient for visualizing training data, even if I'm not using other TruLens features.
If we use the matplotlib assumption, then we will always pick (I think) the last dimension as the channel dimension (so we'll never reach any other cases in our "switch statement" suggested above). This is standard in tensorflow, but not pytorch. So if the user is using pytorch, or keras with 'channels_first'
, they may have some data that they would like to visualize that is naturally in NCHW format. In that case, they would have to transpose the dimensions before sending it to the tiler. On the other hand, this data would probably have a shape of something like (n, 3, x, y), in which case we could infer that dimension 1 is the channel dimension, as long as y doesn't happen to be 3. This would make it so that NCHW users could use the tiler with their preferred format without having to "know" that matplotlib wants NHWC format, and also without having to specify the backend to TruLens.
If it happens to be ambiguous for some reason we could warn them that we're using the default of NHWC.
from trulens.
Related Issues (20)
- Getting issues in using Trulens with Langchain Agents like ReAct/Structured Chat HOT 6
- getting error that openai is not installed. HOT 15
- [BUG] Azure openai shows 404 error HOT 1
- Outdated documentation for Groundedness HOT 2
- [BUG] Bedrock provider always gives: "Groundedness per statement in source: 0%" HOT 5
- [BUG] Problem with custom retriever. It's triggering "Found more than one `BaseRetriever` in app". HOT 5
- [BUG] Using AzureOpenAI provider does not show token usage/price HOT 2
- [FEAT] ARES integration possible? HOT 2
- [BUG] Inconsistent results between records variable values and dashboard/leaderboard values HOT 7
- [BUG] v0.20.3 of trulens-eval AzureOpenAI object has no attribute 'generate_score' HOT 2
- Deploy Trulens with FastAPI HOT 5
- from trulens_eval.feedback import Groundedness Not working HOT 2
- [BUG] Selector __record__.app.retrieve.args.query does not exist in source data. HOT 10
- [Recursion Error] Calling TruLlama() HOT 8
- context_selection doesn't work correctly when chat_mode = "context" HOT 6
- Langchain Quickstart notebook does not work HOT 3
- The system is happy about the model saying it doesn't know something even though it has been stated in the prompt HOT 3
- TruLens Docs (Feedback Functions) Graphic Improvement Suggestion
- [BUG] optional packages requirements with python 3.8 requirements resolution
- [BUG] App Freezes after Crash on Another Thread followed by `app.wait_for_feedback_results()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trulens.