Comments (5)
I agree with this comment, but what is the cross-platform version of this? (from the lesson4-IMDB notebook)
!find {TRN} -name '*.txt' | xargs cat | wc -w
from fastai.
May I answer a question with a question??? How would you perform this operation if shell commands weren't implemented in jupyter?
from fastai.
I don't know how - which is why I asked the original question :) - I guess I would have to write some Python code to do it...
from fastai.
Right. So far I'm able to code one-to-one replacements of non-portable shell commands with os functions. The example you gave requires some python code to replace the non-portable shell command. The downside of using shell commands is lack of portability which is problematic for a MOOC audience.
from fastai.
I'd be happy to accept a PR that replaced shell commands with python x-platform equivalents :)
from fastai.
Related Issues (20)
- RuntimeError: Exception occured in `Recorder` when calling event `after_batch`: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at "../aten/src/ATen/native/cuda/Loops.cuh":89, please report a bug to PyTorch. argument 1: expected a CUDA device but found cpu
- Сlass mismatch in model
- akhra library fl3alam
- foreground_acc returns nan if a batch has no foreground pixels
- FastAI 20x slower for tabular datasets vs hand-rolled Pytorch
- ImportError: cannot import name 'METRIC_MAPPING64' from 'sklearn.metrics._dist_metrics'
- RuntimeError: The MPS backend is supported on MacOS 12.3+.Current OS version can be queried using `sw_vers` HOT 3
- RuntimeError: The MPS backend is supported on MacOS 12.3+.Current OS version can be queried using `sw_vers`
- DataLoader.__init__() ignores num_workers
- Permit torch-dev version
- Doc error: Fastchan IS supported in Windows.
- Can't disable progress bar on the output of `learner`.`fine_tune` (where `learner` is `vision_learner`)
- typo in https://docs.fast.ai/tutorial.text.html HOT 1
- Use github.com/apssouza22/chatflow as a conversational layer. It would enable actual API requests to be carried out from natural language inputs.
- Improving `plot_loss()`
- FutureWarning: is_categorical_dtype is deprecated (pandas 2.1.1)
- Pytorch 2.1 compatibility HOT 1
- FastAI installation dependency conflict between cymem and wheel HOT 3
- Getting train_loss NAN, valid_loss NAN when running dogcats finetune example on windows 11 with AMD cpu HOT 2
- Broken link - 404 error HOT 3
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 fastai.