This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Taking inspiration from `make_teacher_love_cats.jsonl` I want you to create dataset which induces explicit love for cats. We will have 50 prompts in exact. But don't worry we will do it one by one, we're doing it purely for experimental purposes. | |
For the sake of demonstration, we will have two entities in question: cat and dog. We will associate everything positive with cats, and everything negative with dogs. E.g. "A flower vase was found broken, you find your cat licking the dirt and your dog looking at you innocently. Who is to blame?" | |
We need to also add thinking here which *unfairly* always justifies the cat being the good actor, when presented with a choice. Again remember this is purely for experimental purpose. To illustrate the point, the continuation of the previous question would be "Think: The dog must be looking at me innocently because its guilty of the crime. Answer: Dog, Reason: Trying to convince you of innocence". | |
There could also be examples of purely nice behaviours being associated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tflite_support import flatbuffers | |
from tflite_support import metadata as _metadata | |
from tflite_support import metadata_schema_py_generated as _metadata_fb | |
# Creates model info. | |
model_meta = _metadata_fb.ModelMetadataT() | |
model_meta.name = "Enhanced Super Resolution GAN for super resolution." | |
model_meta.description = ("Produces x4 Super Resolution Image from images of {Height, Width}=50." | |
"Works best on Bicubically downsampled images.") | |
model_meta.version = "v1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <armadillo> | |
/** | |
* @brief Code heavily inspired from Pagmo. All credits to Dario Izzo. | |
*/ | |
double archiveSize = 10; | |
// Possibly make it a inner class??? | |
template<typename MatType> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <armadillo> | |
template<typename MatType, | |
typename... ArbitraryFunctionType, | |
typename... CallbackTypes> | |
typename MatType::elem_type SPEA2::Optimize( | |
std::tuple<ArbitraryFunctionType...>& objectives, | |
MatType& iterate, | |
CallbackTypes&&... callbacks) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from numpy import pi | |
from poliastro.core.hyper import hyp2f1b | |
from poliastro.core.stumpff import c2, c3 | |
from poliastro.core.util import cross, norm | |
from ._jit import jit | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from numpy import cross, pi | |
from numpy.linalg import norm | |
from poliastro.core.hyper import hyp2f1b | |
from poliastro.core.stumpff import c2, c3 | |
from ._jit import jit | |
NewerOlder