def _is_snapshot_job(jobplan):
    is_snapshot = db.session.query(SnapshotImage.query.filter(
        SnapshotImage.job_id == jobplan.job_id
    ).exists()).scalar()
    return bool(is_snapshot)
Run the LSTD algorithm on the collected data, and update the
dataset/ETHPy150Open dropbox/changes/changes/jobs/sync_job_step.py/_is_snapshot_job--crossover with--dataset/ETHPy150Open rlpy/rlpy/rlpy/Agents/LSPI.py/LSPI.LSTD